Skip to content

Commit

Permalink
tests: add args and php version
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiano-mallmann committed Jan 16, 2024
1 parent a199bcd commit fe19bf0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,28 +71,35 @@ jobs:
- name: Install Magento
uses: php-actions/composer@v6
with:
php_version: 8.1
command: "create-project --repository-url=https://repo.magento.com/ magento/project-community-edition:2.4.5 magento"
args: "--ignore-platform-reqs"
env:
COMPOSER_AUTH: '{"http-basic": { "repo.magento.com": { "username": "${{ secrets.MAGENTO_KEY }}", "password": "${{secrets.MAGENTO_SECRET}}"}}}'

- name: Change minimum stable to Dev
uses: php-actions/composer@v6
with:
php_version: 8.1
command: "config minimum-stability dev"
working_dir: app/magento

- name: Download Module
uses: php-actions/composer@v6
with:
php_version: 8.1
command: require pagarme/pagarme-magento2-module:dev-${{ github.ref_name }}
args: "--ignore-platform-reqs"
working_dir: app/magento
env:
COMPOSER_AUTH: '{"http-basic": { "repo.magento.com": { "username": "${{ secrets.MAGENTO_KEY }}", "password": "${{secrets.MAGENTO_SECRET}}"}}}'

- name: Download Mockery
uses: php-actions/composer@v6
with:
php_version: 8.1
command: require mockery/mockery
args: "--ignore-platform-reqs"
working_dir: app/magento
env:
COMPOSER_AUTH: '{"http-basic": { "repo.magento.com": { "username": "${{ secrets.MAGENTO_KEY }}", "password": "${{secrets.MAGENTO_SECRET}}"}}}'
Expand Down

0 comments on commit fe19bf0

Please sign in to comment.