Skip to content

[6.5.x] fix: filter cookie provider by active sales channel payment method #1500

[6.5.x] fix: filter cookie provider by active sales channel payment method

[6.5.x] fix: filter cookie provider by active sales channel payment method #1500

Workflow file for this run

name: integration
on:
push:
branches:
- 6.5.x
pull_request:
merge_group:
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
check:
if: always()
needs: [build-zip, test-install-zip, phpunit]
runs-on: ubuntu-latest
steps:
- uses: re-actors/[email protected]
with:
jobs: ${{ toJSON(needs) }}
build-zip:
runs-on: ubuntu-latest
outputs:
artifact-url: ${{ steps.upload.outputs.artifact-url }}
steps:
- name: Build and validate zip
uses: shopware/github-actions/build-zip@main
with:
extensionName: ${{ github.event.repository.name }}
test-install-zip:
needs: build-zip
runs-on: ubuntu-latest
strategy:
matrix:
PLATFORM_BRANCH: ["v6.5.5.1", "6.5.x"]
steps:
- name: Checkout SwagPayPal
uses: actions/checkout@v4
with:
path: custom/plugins/${{ github.event.repository.name }}
- name: Test install zip
uses: ./custom/plugins/SwagPayPal/.github/actions/setup-paypal
with:
extension-zip: ${{ needs.build-zip.outputs.artifact-url }}
shopware-version: ${{ matrix.PLATFORM_BRANCH }}
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
MYSQL_IMAGE: ["mysql:8.0", "mariadb:10.3", "mariadb:10.5"]
PLATFORM_BRANCH: ["v6.5.5.1", "6.5.x"]
PHP_VERSION: ["8.1", "8.2"]
WITH_COMMERCIAL: [true, false]
env:
REDIS_URL: redis://localhost:6379
services:
redis:
image: redis:alpine
ports:
- "6379:6379"
steps:
- name: Checkout SwagPayPal
uses: actions/checkout@v4
with:
path: custom/plugins/${{ github.event.repository.name }}
- name: Setup SwagPayPal
uses: ./custom/plugins/SwagPayPal/.github/actions/setup-paypal
with:
install-commercial: ${{ matrix.WITH_COMMERCIAL }}
install-admin: true
install-storefront: true
mysql-version: ${{ matrix.MYSQL_IMAGE }}
php-version: ${{ matrix.PHP_VERSION }}
shopware-version: ${{ matrix.PLATFORM_BRANCH }}
- name: Run PHPUnit
working-directory: custom/plugins/${{ github.event.repository.name }}
run: composer phpunit -- --coverage-cobertura cobertura.xml --coverage-text