-
Notifications
You must be signed in to change notification settings - Fork 21
51 lines (38 loc) · 912 Bytes
/
node.js.yml
File metadata and controls
51 lines (38 loc) · 912 Bytes
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
48
49
50
51
name: Build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm install --location=global bslint
- name: Lint
run: npm run lint
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [8.x, 12.x, 14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v2
- name: Install
run: npm install nyc coveralls
- name: Test
run: npm run test-ci
- name: Coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}