Skip to content

Commit a75e22a

Browse files
committed
fixed workflow
1 parent f1a5548 commit a75e22a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/release-package.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,24 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
node: [12, 14]
19+
os: [ubuntu-latest, windows-latest]
20+
1521
steps:
1622
- uses: actions/checkout@v2
1723
- uses: actions/setup-node@v2
1824
with:
19-
node-version: 12
25+
node-version: ${{ matrix.node }}
2026

2127
- name: Run ci
2228
run: npm ci
2329

2430
- name: Run tests
25-
run: npm run coverage
31+
run: npm run test-cov
2632

2733
- name: Coveralls
2834
uses: coverallsapp/github-action@master

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "mocha",
8-
"coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
8+
"test-cov": "nyc npm test",
9+
"test-coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
910
},
1011
"repository": {
1112
"type": "git",

0 commit comments

Comments
 (0)