Skip to content

PPI-1041 - Updated lint and test suite #46

PPI-1041 - Updated lint and test suite

PPI-1041 - Updated lint and test suite #46

Workflow file for this run

name: Integration
on:
push:
branches:
- trunk
pull_request:
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
build_zip:
name: Build and validate zip
uses: shopware/github-actions/.github/workflows/build-zip.yml@main
with:
extensionName: ${{ github.event.repository.name }}
phpunit:
runs-on: ubuntu-latest
strategy:
matrix:
MYSQL_IMAGE: ["mysql:8.0", "mariadb:10.11"]
PLATFORM_BRANCH: ["v6.6.0.0", "trunk"]
PHP_VERSION: ["8.2", "8.3"]
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 dump-autoload --dev
php -d pcov.enabled=1 -d pcov.directory=$PWD/src -d pcov.exclude='~(vendor|tests|node_modules)~' \
${GITHUB_WORKSPACE}/vendor/bin/phpunit \
--configuration phpunit.xml.dist \
--log-junit ${GITHUB_WORKSPACE}/phpunit.junit.xml \
--coverage-cobertura ${GITHUB_WORKSPACE}/cobertura.xml \
--coverage-text