Develop #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Shopware Plugin Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
permissions: | |
contents: read | |
jobs: | |
integration: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
shopware-version: | |
- 'v6.5.7.3' | |
steps: | |
- name: Setup Shopware | |
uses: FriendsOfShopware/setup-shopware@v1 | |
with: | |
php-version: 8.1 | |
shopware-version: ${{ matrix.shopware-version }} | |
- name: Setup Shopware Database | |
run: composer setup | |
- uses: actions/checkout@v3 | |
with: | |
path: custom/plugins/ImiDiPasswordProtectedPages | |
- name: Install and activate plugin | |
run: export APP_SECRET=1 && bin/console plugin:refresh && bin/console plugin:install -a ImiDiPasswordProtectedPages | |
- name: Run Tests | |
run: | | |
cd custom/plugins/ImiDiPasswordProtectedPages/ | |
TEST_TOKEN=none php -d pcov.enabled=1 ../../../vendor/bin/phpunit tests/ --configuration=../../../phpunit.xml.dist --coverage-clover clover.xml | |