-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (43 loc) · 1.33 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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