Skip to content

Commit fb6f3e0

Browse files
committed
travis -> GitHub actions
1 parent 9bd5744 commit fb6f3e0

File tree

2 files changed

+47
-9
lines changed

2 files changed

+47
-9
lines changed

.github/workflows/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
PRIMARY_NODEJS_VERSION: 18
9+
REPORTER: 'min'
10+
11+
jobs:
12+
lint:
13+
name: Lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Setup node ${{ env.PRIMARY_NODEJS_VERSION }}
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ env.PRIMARY_NODEJS_VERSION }}
21+
cache: 'npm'
22+
- run: npm ci
23+
- run: npm run lint
24+
25+
unit-tests:
26+
name: Unit tests
27+
runs-on: ${{ matrix.os }}
28+
29+
strategy:
30+
matrix:
31+
os: [ubuntu-latest, macOS-latest, windows-latest]
32+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
33+
node_version:
34+
- 12.20.0
35+
- 14.13.0
36+
- 16
37+
- 18
38+
39+
steps:
40+
- uses: actions/checkout@v2
41+
- name: Setup node ${{ matrix.node_version }}
42+
uses: actions/setup-node@v2
43+
with:
44+
node-version: ${{ matrix.node_version }}
45+
cache: 'npm'
46+
- run: npm ci
47+
- run: npm run test

.travis.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)