Skip to content

Test

Test #73

Workflow file for this run

name: Test
on:
push:
branches:
- 'main'
tags-ignore:
- '*'
pull_request:
schedule:
- cron: "5 15 * * *"
jobs:
test:
strategy:
fail-fast: false
matrix:
version: [ "v6.5.0", "v6.5.1", "v6.5.2", "v6.5.3", "trunk" ]
container: ghcr.io/friendsofshopware/platform-plugin-dev:${{ matrix.version }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test
run: |
start-mysql
cp -r "./" "/plugins/FroshPlatformThumbnailProcessor"
cd /plugins/FroshPlatformThumbnailProcessor
php -d pcov.enabled=1 /opt/shopware/vendor/bin/phpunit --coverage-clover clover.xml
- uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./clover.xml
root_dir: /plugins/FroshPlatformThumbnailProcessor
working-directory: /plugins/FroshPlatformThumbnailProcessor
- name: Install dependencies for PHPStan
if: matrix.version == 'v6.5.0'
run: |
cd /opt/shopware/
composer require tomasvotruba/type-coverage --dev --no-scripts
- name: PHPStan
run: |
cd /plugins/FroshPlatformThumbnailProcessor
/opt/shopware/vendor/bin/phpstan analyse -c phpstan.neon