Skip to content

Commit

Permalink
chore(deps, ci): Updates nyc and moves to Codecov
Browse files Browse the repository at this point in the history
- Removes Coveralls
- Adds Codecov step to CI
  • Loading branch information
Joe Bottigliero authored and jbottigliero committed Feb 20, 2021
1 parent f158d6f commit b1f33e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ on:
name: ci
jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [10, 12, 14]
os: [ubuntu-latest, windows-latest]
env:
OS: ${{ matrix.os }}
NODE_VERSION: ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow
Expand All @@ -21,15 +25,8 @@ jobs:
- run: node --version
- run: npm install --engine-strict
- run: npm test
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow
- run: git config --global user.name 'Actions'
- run: git config --global user.email 'dummy@example.org'
- uses: actions/setup-node@v2
- run: npm run coverage
- name: Codecov
uses: codecov/codecov-action@v1
with:
node-version: 12
- run: npm install
- run: npm test
env_vars: OS, NODE_VERSION
8 changes: 4 additions & 4 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=lcov",
"release": "bin/cli.js"
},
"nyc": {
Expand Down Expand Up @@ -54,16 +55,15 @@
},
"devDependencies": {
"chai": "^4.2.0",
"coveralls": "^3.1.0",
"eslint": "^7.14.0",
"eslint-config-standard": "^16.0.2",
"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 b1f33e4

Please sign in to comment.