SSP-178 - Fix for scheduled tasks v4 #346
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: [ '8.2', '8.3' ] | |
shopware-versions: [ | |
'6.6.0.3', | |
'6.6.1.2', | |
'6.6.2.0', | |
] | |
name: Shopware ${{ matrix.shopware-versions }} Test (PHP ${{ matrix.php-versions }}) | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: nosto-shopware6 | |
- name: Setup Runner | |
uses: ./nosto-shopware6/.github/action/setup_runner | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Setup Plugin | |
uses: ./nosto-shopware6/.github/action/setup_plugin | |
- name: Setup Shopware Shop | |
uses: ./nosto-shopware6/.github/action/setup_shop | |
with: | |
shopware-version: ${{ matrix.shopware-versions }} | |
- name: Install test dependencies for SW | |
run: | | |
cd shopware | |
composer require --dev symfony/test-pack | |
- name: Run PHPUnit test suite | |
run: | | |
cd shopware/custom/plugins/nosto-shopware6 | |
SYMFONY_DEPRECATIONS_HELPER=disabled composer test |