-
Notifications
You must be signed in to change notification settings - Fork 23
38 lines (38 loc) · 1.04 KB
/
ci.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
name: Coverage
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: shivammathur/setup-php@v2
# https://github.com/boyney123/github-actions/blob/HEAD/src/actions/setup-php.md
with:
php-version: '8.1'
tools: php-cs-fixer, phpunit
- uses: ramsey/composer-install@v2
with:
dependency-versions: locked
composer-options: '--ignore-platform-reqs'
- name: Test
run: |
make test-all-coverage
env:
TEST_ACCOUNT_KEY: ${{secrets.TEST_ACCOUNT_KEY}}
TEST_ACCOUNT_SECRET: ${{secrets.TEST_ACCOUNT_SECRET}}
- uses: codecov/codecov-action@v2
with:
files: ./build/logs/clover.xml
fail_ci_if_error: true
target: 90% # Desired coverage percentage
threshold: 2% # Allowed coverage percentage deviation
verbose: true