Skip to content

Commit f560021

Browse files
committed
add coverage report
1 parent 5e2a4d6 commit f560021

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/php.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Run tests
33
on: [push]
44

55
jobs:
6-
build:
7-
6+
tests:
87
runs-on: ubuntu-latest
98

109
strategy:
@@ -24,3 +23,23 @@ jobs:
2423

2524
- name: Run phpstan
2625
run: composer run phpstan
26+
27+
coverage:
28+
runs-on: ubuntu-latest
29+
30+
container: ghcr.io/bulkgate/plugin:8.3
31+
32+
steps:
33+
- uses: actions/checkout@v1
34+
35+
- name: Install dependencies
36+
run: composer install --prefer-dist --no-progress --no-suggest
37+
38+
- name: Run test suite
39+
run: composer run coverage
40+
41+
- name: Upload coverage
42+
uses: actions/upload-artifact@v2
43+
with:
44+
name: coverage-report
45+
path: coverage.html

0 commit comments

Comments
 (0)