-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 984 Bytes
/
code_coverage.yaml
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
name: Code Coverage
on:
pull_request: null
push:
branches:
- master
jobs:
code_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@master
with:
php-version: 8.2
coverage: xdebug
- name: Load dependencies from cache
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php7.3-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php7.3-composer-
- run: composer install --prefer-dist --no-progress --no-suggest
- run: php vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- run: php vendor/bin/php-coveralls --verbose
env:
COVERALLS_RUN_LOCALLY: 1
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}