Skip to content

Commit 7094dfe

Browse files
authored
report coverage (#97)
1 parent 2ceb62f commit 7094dfe

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/master.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Merge Master
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
operating-system: [ ubuntu-20.04 ]
13+
php-versions: ['8.1']
14+
15+
name: Upload coverage report
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php-versions }}
24+
extensions: mbstring, intl, sqlite3, xml, simplexml, mysqli
25+
tools: composer:v2
26+
coverage: xdebug
27+
28+
- name: Install dependencies
29+
if: steps.composer-cache.outputs.cache-hit != 'true'
30+
run: |
31+
composer self-update
32+
composer validate
33+
composer install --prefer-dist --no-progress
34+
- name: Coverage Report
35+
env:
36+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
run: |
38+
composer global require php-coveralls/php-coveralls
39+
export CODECOVERAGE=1 && vendor/bin/phpunit --verbose --coverage-clover=clover.xml
40+
php-coveralls --coverage_clover=clover.xml -v

0 commit comments

Comments
 (0)