Skip to content

Commit

Permalink
test: update mocha to latest, move from nyc to c8 for test coverage, …
Browse files Browse the repository at this point in the history
…update Node versions
  • Loading branch information
webketje committed Jun 4, 2023
1 parent 1a67966 commit b8872a8
Show file tree
Hide file tree
Showing 6 changed files with 204 additions and 1,292 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ rules:
no-var: error
no-use-before-define: error
no-await-in-loop: error
'import/namespace': off
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest']
node: ['12.17.0']
node: ['14.14.0']
name: Testing Node ${{ matrix.node }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest']
node: ['12.17.0', '14.0', '16.0']
node: ['14.14.0', '16.0', '18.0']
name: Testing Node ${{ matrix.node }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -54,10 +54,10 @@ jobs:

- run: npm install
- run: npm test
- if: matrix.os == 'ubuntu-latest' && matrix.node == '16.0'
- if: matrix.os == 'ubuntu-latest' && matrix.node == '18.0'
run: npm run coverage
- if: matrix.os == 'ubuntu-latest' && matrix.node == '16.0'
uses: coverallsapp/github-action@1.1.3
- if: matrix.os == 'ubuntu-latest' && matrix.node == '18.0'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ github.token }}
path-to-lcov: ./coverage.info
file: coverage.info
format: lcov
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ npm-debug.log*
.npm
*.tgz
.eslintcache
.nyc_output
coverage
coverage.info
test/fixtures/*/build
lib/*.*js
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
test/fixtures/**
.nyc_output/**
coverage/**
Loading

0 comments on commit b8872a8

Please sign in to comment.