Skip to content

Commit 8fbdb84

Browse files
committed
add artifacts to github action
1 parent b0c9f10 commit 8fbdb84

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/php.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,10 @@ jobs:
2828
run: composer lint
2929

3030
- name: Run PHPUnit tests
31-
run: composer test
31+
run: composer test
32+
33+
- name: Upload coverage report
34+
uses: actions/upload-artifact@v2
35+
with:
36+
name: coverage-report
37+
path: coverage/

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"scripts": {
3131
"lint": "phpcs --ignore=/vendor/* --standard=PSR12 .",
3232
"lint:fix": "phpcbf --ignore=/vendor/* --standard=PSR12 .",
33-
"test": "phpunit --testdox --coverage-clover coverage/clover.xml --coverage-filter src/"
33+
"test": "phpunit --testdox --coverage-clover coverage/clover.xml --coverage-html coverage --coverage-filter src/"
3434
}
3535
}

0 commit comments

Comments
 (0)