Skip to content

Commit

Permalink
tests: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiano-mallmann committed Jan 16, 2024
1 parent e46876c commit dc35bcb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,17 @@ jobs:
steps:
# - name: Checkout project
# uses: actions/checkout@v4

- name: Create Auth Magento File
uses: php-actions/composer@v6
with:
command: config -g http-basic.repo.magento.com ${{secrets.MAGENTO_KEY}} ${{secrets.MAGENTO_SECRET}}

- name: Create Folder
run: ls -la && mkdir magento && cd magento && ls -la

- name: Install Magento
uses: php-actions/composer@v6
with:
COMPOSER_AUTH: '"http-basic": { "repo.magento.com": { "username": "${{ secrets.MAGENTO_KEY }}", "password": "${{secrets.MAGENTO_SECRET}}"}}'
command: "create-project --repository-url=https://repo.magento.com/ magento/project-community-edition:2.4.5 magento"

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:
Expand All @@ -90,12 +86,16 @@ jobs:
with:
command: require pagarme/pagarme-magento2-module:dev-${{ github.ref_name }}
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:
command: require mockery/mockery
working_dir: app/magento
env:
COMPOSER_AUTH: '"http-basic": { "repo.magento.com": { "username": "${{ secrets.MAGENTO_KEY }}", "password": "${{secrets.MAGENTO_SECRET}}"}}'

- name: Run PHP Unit Tests
run: ./vendor/bin/phpunit -c vendor/pagarme/pagarme-magento2-module/phpunit.xml
Expand Down

0 comments on commit dc35bcb

Please sign in to comment.