MOL-1280: Fix subscription metadata after retry #1421
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: PR Pipeline | |
on: [ pull_request, workflow_dispatch ] | |
jobs: | |
config: | |
name: Test Plugin Configuration | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: Test configuration | |
run: make configcheck -B | |
# ------------------------------------------------------------------------------------------------------------------------ | |
install: | |
name: Install Dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: Mount Dev Dependency Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-dev-dependencies-${{ github.run_id }} | |
path: | | |
src/Resources/app/storefront/node_modules | |
src/Resources/app/administration/node_modules | |
vendor | |
- name: Install Dependencies | |
run: make dev -B | |
# ------------------------------------------------------------------------------------------------------------------------ | |
snippets: | |
name: Test Plugin Snippets | |
runs-on: ubuntu-latest | |
needs: install | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: Mount Dev Dependency Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-dev-dependencies-${{ github.run_id }} | |
path: | | |
src/Resources/app/storefront/node_modules | |
src/Resources/app/administration/node_modules | |
vendor | |
- name: Test snippets | |
run: make snippetcheck -B | |
# ------------------------------------------------------------------------------------------------------------------------ | |
jest: | |
name: Jest Tests | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Mount Dev Dependency Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-dev-dependencies-${{ github.run_id }} | |
path: | | |
src/Resources/app/storefront/node_modules | |
src/Resources/app/administration/node_modules | |
vendor | |
- name: Run Jest | |
run: make jest -B | |
stryker: | |
name: Stryker Tests | |
needs: jest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Mount Dev Dependency Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-dev-dependencies-${{ github.run_id }} | |
path: | | |
src/Resources/app/storefront/node_modules | |
src/Resources/app/administration/node_modules | |
vendor | |
- name: Run Stryker | |
run: make stryker -B | |
eslint: | |
name: ESLint | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Mount Dev Dependency Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-dev-dependencies-${{ github.run_id }} | |
path: | | |
src/Resources/app/storefront/node_modules | |
src/Resources/app/administration/node_modules | |
vendor | |
- name: Run ESLint | |
run: make eslint -B | |
stylelint: | |
name: Stylelint | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Mount Dev Dependency Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-dev-dependencies-${{ github.run_id }} | |
path: | | |
src/Resources/app/storefront/node_modules | |
src/Resources/app/administration/node_modules | |
vendor | |
- name: Run Stylelint | |
run: make stylelint -B | |
# ------------------------------------------------------------------------------------------------------------------------ | |
php_checks: | |
name: PHP Syntax Checks | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: PHP Syntax Checks | |
run: make phpcheck -B | |
php_min: | |
name: PHP 7.2 Compatibility | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: Mount Dev Dependency Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-dev-dependencies-${{ github.run_id }} | |
path: | | |
src/Resources/app/storefront/node_modules | |
src/Resources/app/administration/node_modules | |
vendor | |
- name: PHP Compatibility Checks | |
run: make phpmin -B | |
phpunit: | |
name: PHPUnit | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: Mount Dev Dependency Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-dev-dependencies-${{ github.run_id }} | |
path: | | |
src/Resources/app/storefront/node_modules | |
src/Resources/app/administration/node_modules | |
vendor | |
- name: Run PHPUnit | |
run: make phpunit -B | |
infection: | |
name: Mutation Tests | |
needs: phpunit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: Mount Dev Dependency Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-dev-dependencies-${{ github.run_id }} | |
path: | | |
src/Resources/app/storefront/node_modules | |
src/Resources/app/administration/node_modules | |
vendor | |
- name: Run Infection | |
run: make infection -B | |
phpstan: | |
name: PHPStan | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: Mount Dev Dependency Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-dev-dependencies-${{ github.run_id }} | |
path: | | |
src/Resources/app/storefront/node_modules | |
src/Resources/app/administration/node_modules | |
vendor | |
- name: Run PHPStan | |
run: make stan -B | |
phpcsfixer: | |
name: PHP CS Fixer | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
- name: Mount Dev Dependency Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-dev-dependencies-${{ github.run_id }} | |
path: | | |
src/Resources/app/storefront/node_modules | |
src/Resources/app/administration/node_modules | |
vendor | |
- name: Run PHP CS Fixer | |
run: make csfix -B | |
# ------------------------------------------------------------------------------------------------------------------------ | |
build: | |
name: Build Plugin | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Create Cache Directories | |
run: | | |
mkdir -p ~/.build | |
- name: Mount Build Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-build-${{ github.run_id }} | |
path: ~/.build | |
- name: Build Plugin | |
uses: ./.github/actions/build-plugin | |
# ------------------------------------------------------------------------------------------------------------------------ | |
e2e: | |
name: E2E Core | Shopware ${{ matrix.shopware }} | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- shopware: '6.5.7.3' | |
php: '8.2' | |
- shopware: '6.5.5.2' | |
php: '8.2' | |
- shopware: '6.4.20.2' | |
php: '8.2' | |
- shopware: '6.4.1.0' | |
php: '7.4' | |
steps: | |
- name: Clone Code | |
uses: actions/checkout@v3 | |
- name: Mount Build Cache | |
uses: actions/cache@v3 | |
with: | |
key: cache-build-${{ github.run_id }} | |
path: ~/.build | |
- name: E2E Core Tests, Shopware ${{ matrix.shopware }} | |
uses: ./.github/actions/run-e2e | |
with: | |
# ------------------------------------------- | |
SHOPWARE: ${{ matrix.shopware }} | |
PHP: ${{ matrix.php }} | |
# ------------------------------------------- | |
MOLLIE_APIKEY_TEST: "" | |
# ------------------------------------------- | |
RUN_CYPRESS: true | |
TESTRAIL: false | |
# only run @core tests, because we have no API key here | |
FILTERS: "@core" |