Skip to content

Commit

Permalink
Add code coverage generation
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank committed Jul 14, 2022
1 parent 76d82a0 commit 2f93814
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PHPStan

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: composer install
- name: "Run test suite"
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ composer.lock

# PHPUnit
.phpunit.result.cache
coverage.xml

# JetBrains
.idea
Expand Down

0 comments on commit 2f93814

Please sign in to comment.