-
Notifications
You must be signed in to change notification settings - Fork 17
45 lines (41 loc) · 1.46 KB
/
unit.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
name: PHPUnit
on:
push:
branches:
- 'main'
tags-ignore:
- '*'
pull_request:
jobs:
phpunit:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shopware-version:
- 'v6.5.2.0'
- 'v6.5.3.2'
- 'trunk'
steps:
- name: Setup Shopware
uses: FriendsOfShopware/setup-shopware@main
with:
shopware-version: ${{ matrix.shopware-version }}
php-version: 8.1
- name: Checkout
uses: actions/checkout@v3
with:
path: custom/plugins/FroshPlatformTemplateMail
- name: Run Tests
run: |
cd custom/plugins/FroshPlatformTemplateMail/
php -d pcov.enabled=1 ../../../vendor/bin/phpunit --coverage-clover clover.xml
- name: Upload coverage
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./clover.xml
root_dir: /home/runner/work/FroshPlatformTemplateMail/FroshPlatformTemplateMail/custom/plugins/FroshPlatformTemplateMail/
working-directory: /home/runner/work/FroshPlatformTemplateMail/FroshPlatformTemplateMail/custom/plugins/FroshPlatformTemplateMail/