generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.01 KB
/
build.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
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
push:
branches: ['master']
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
name: build
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
working-directory: ./tests
run: docker compose build
- name: PHP Unit tests coverage
working-directory: ./tests
run: docker compose run --rm php-cli vendor/bin/phpunit --coverage-clover ./tests/runtime/coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
verbose: true
files: ./tests/runtime/coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}