Skip to content

Commit cfdea4b

Browse files
ci: switch to Github Actions (#15)
1 parent 7115845 commit cfdea4b

File tree

3 files changed

+40
-10
lines changed

3 files changed

+40
-10
lines changed

.github/workflows/ci.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
name: Code style
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout sources
11+
uses: actions/checkout@v2
12+
- name: Install Node.js
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: 14.x
16+
- name: Install dependencies
17+
run: npm install
18+
- name: Check code style
19+
run: npm run lint
20+
21+
test:
22+
name: Tests
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
node-version: [10.x, 12.x, 14.x, 15.x]
27+
steps:
28+
- name: Checkout sources
29+
uses: actions/checkout@v2
30+
- name: Install Node.js ${{matrix.node-version}}
31+
uses: actions/setup-node@v2
32+
with:
33+
node-version: ${{matrix.node-version}}
34+
- name: Install dependencies
35+
run: npm install
36+
- name: Run tests
37+
run: npm run tests-only

.travis.yml

-9
This file was deleted.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"version": "1.2.2",
66
"scripts": {
77
"start": "node .",
8-
"test": "standard && node test"
8+
"lint": "standard",
9+
"tests-only": "node test",
10+
"test": "npm run lint && npm run tests-only"
911
},
1012
"browser": {
1113
"assert": "nanoassert"

0 commit comments

Comments
 (0)