forked from ilios/ilios
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 945 Bytes
/
coverage.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
name: Report Code Coverage
on:
schedule:
- cron: '46 2 * * *' # daily at 2:46am
env:
MAILER_DSN: null://null
ILIOS_LOCALE: en
ILIOS_SECRET: ThisTokenIsNotSoSecretChangeIt
ILIOS_FILE_SYSTEM_STORAGE_PATH: /tmp
SYMFONY_DEPRECATIONS_HELPER: disabled=1
CC_TEST_REPORTER_ID: c2e072c72320901c23741e4c25bfd28e149441b5a19ba9abb8cf80ca0363ff9a
jobs:
coverage:
name: Test and Calculate Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use PHP 8.1
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
coverage: pcov
extensions: apcu
- name: install dependencies
run: composer install --no-interaction --prefer-dist
- name: calculate
uses: paambaati/[email protected]
with:
coverageCommand: vendor/bin/phpunit --coverage-clover build/coverage.xml
coverageLocations:
build/coverage.xml:clover