Skip to content

Commit 9fae575

Browse files
authored
Build: Switch CI to GitHub Actions
Closes gh-110.
1 parent 6039350 commit 9fae575

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

.github/workflows/node.js.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
NODE_VERSION: [16.x]
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Cache
17+
uses: actions/cache@v2
18+
with:
19+
path: ~/.npm
20+
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
21+
restore-keys: |
22+
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-
23+
24+
- name: Use Node.js ${{ matrix.NODE_VERSION }}
25+
uses: actions/setup-node@v2.1.2
26+
with:
27+
node-version: ${{ matrix.NODE_VERSION }}
28+
29+
- name: Install dependencies
30+
run: |
31+
npm install
32+
33+
- name: Run tests
34+
run: |
35+
npm test

.travis.yml

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

0 commit comments

Comments
 (0)