-
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (45 loc) · 1.25 KB
/
nodejs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
env: {}
# FILE GENERATED WITH: npx ghat voxpelli/ghatemplates/nodejs-coveralls
# SOURCE: https://github.com/voxpelli/ghatemplates
# OPTIONS: {"set":["jobs.test.strategy.matrix.node_version=[12,14,16]"]}
name: Node CI
on:
- push
- pull_request
jobs:
test:
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node_version:
- 12
- 14
- 16
os:
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
- run: npm install
- run: npm run test-ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.os }}-${{ matrix.node_version }}
parallel: true
coverage:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true