Skip to content

Commit

Permalink
NEXT-37263 - Use local db instead one from separate repo for integrat…
Browse files Browse the repository at this point in the history
…ion tests
  • Loading branch information
jozsefdamokos committed Dec 27, 2024
1 parent 1e562f7 commit 2183980
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ jobs:
}
- name: Clone TestData
working-directory: custom/plugins/${{ github.event.repository.name }}/tests
run: |
# TODO: As soon as the TestData gets migrated to GH use octo-sts
git clone https://${{ secrets.TESTDATA_CLONE_TOKEN }}@gitlab.shopware.com/shopware/6/services/testdata.git testData
mysql -uroot < testData/Migration/sw55.sql
run: mysql -uroot < testData/sw55.sql
- name: Run PHPUnit
working-directory: custom/plugins/${{ github.event.repository.name }}
run: php -d pcov.enabled=1 -d pcov.directory=${PWD} -d pcov.exclude='~(vendor|tests|node_modules)~' ${GITHUB_WORKSPACE}/vendor/bin/phpunit --configuration phpunit.xml.dist
Expand Down Expand Up @@ -117,9 +114,7 @@ jobs:
run: |
composer run build:js:admin
cd custom/plugins/${{ github.event.repository.name }}/tests
# TODO: As soon as the TestData gets migrated to GH use octo-sts
git clone https://${{ secrets.TESTDATA_CLONE_TOKEN }}@gitlab.shopware.com/shopware/6/services/testdata.git testData
mysql -uroot < testData/Migration/sw55.sql
mysql -uroot < testData/sw55.sql
- name: Install playwright
working-directory: custom/plugins/${{ github.event.repository.name }}/tests/acceptance
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ jobs:
- name: Run PHPStan
shell: bash
run: |
symfony composer -d custom/plugins/${{ github.event.repository.name }} dump-autoload --dev
symfony composer -d custom/plugins/${{ github.event.repository.name }} run phpstan
composer -d custom/plugins/${{ github.event.repository.name }} dump-autoload --dev
composer -d custom/plugins/${{ github.event.repository.name }} run phpstan

0 comments on commit 2183980

Please sign in to comment.