Skip to content

Commit

Permalink
Add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Oct 4, 2022
1 parent 24ff31e commit f9dfb03
Show file tree
Hide file tree
Showing 4 changed files with 1,147 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,20 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run lint

# coverage:
# name: Coverage check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Code coverage
# uses: actions/setup-node@v2
# with:
# node-version: 12.x
# cache: 'npm'
# - run: npm ci
# - run: npm run test:coverage
# - name: Code Coverage Report
# uses: romeovs/lcov-reporter-action@v0.2.11
tests:
name: Unit tests
runs-on: ubuntu-latest
Expand All @@ -39,4 +52,4 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
- run: npm run test:coverage
5 changes: 5 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"all": true,
"extension": [".ts"],
"include": ["src/**"]
}

0 comments on commit f9dfb03

Please sign in to comment.