Skip to content

Commit

Permalink
fixed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Elius94 committed Feb 1, 2022
1 parent f1a5548 commit a75e22a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,24 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [12, 14]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
node-version: ${{ matrix.node }}

- name: Run ci
run: npm ci

- name: Run tests
run: npm run coverage
run: npm run test-cov

- name: Coveralls
uses: coverallsapp/github-action@master
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"test": "mocha",
"coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
"test-cov": "nyc npm test",
"test-coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit a75e22a

Please sign in to comment.