Skip to content

Commit

Permalink
chore(deps, ci): Updates nyc and adds Coveralls step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bottigliero committed Dec 31, 2020
1 parent f6a7430 commit 55d283e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ on:
name: ci
jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [10, 12, 14]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow
Expand All @@ -21,15 +22,19 @@ jobs:
- run: node --version
- run: npm install --engine-strict
- run: npm test
windows:
runs-on: windows-latest
- run: npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: ${{matrix.os}}-node-${{ matrix.node }}
parallel: true
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow
- run: git config --global user.name 'Actions'
- run: git config --global user.email '[email protected]'
- uses: actions/setup-node@v2
- name: Coveralls
uses: coverallsapp/github-action@master
with:
node-version: 12
- run: npm install
- run: npm test
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"posttest": "eslint .",
"test": "nyc mocha --timeout=30000",
"test:unit": "mocha --exclude test/git.spec.js",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"release": "bin/cli.js"
},
"nyc": {
Expand Down Expand Up @@ -60,10 +61,10 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"mocha": "^8.0.0",
"mock-fs": "^4.12.0",
"mocha": "^8.2.1",
"mock-fs": "^4.13.0",
"mockery": "^2.1.0",
"nyc": "^14.1.1",
"nyc": "^15.1.0",
"shelljs": "^0.8.4",
"std-mocks": "^1.0.1"
}
Expand Down

0 comments on commit 55d283e

Please sign in to comment.