Skip to content

Commit

Permalink
[CI/CD] Add nyc test coverage reporting (#25)
Browse files Browse the repository at this point in the history
* add nyc test coverage reporting

* get coverage in ci test

* update coverage requirements
  • Loading branch information
BrettCleary authored May 3, 2024
1 parent acaf0d7 commit d23b51d
Show file tree
Hide file tree
Showing 4 changed files with 1,459 additions and 207 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
pkg_manager: 'npm'
install: 'npm install'
name: 'test'
command_one: 'npm run startLocalHardhat & npm run test'
command_one: 'npm run startLocalHardhat & npm run coverage'
command_one_name: 'Run Tests'
checkout_recursive: false
secrets:
Expand Down
8 changes: 8 additions & 0 deletions .nycrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
exclude: ["dist"]
include: ["src/**/*.ts"]

check-coverage: true
functions: 73
lines: 89
statements: 85
branches: 59
Loading

0 comments on commit d23b51d

Please sign in to comment.