Skip to content

Commit 2c0f695

Browse files
authored
Replace Travis with Github Actions (#66)
1 parent 02991d8 commit 2c0f695

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

.github/workflows/main.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node: [12, 14, 16]
13+
steps:
14+
- name: Check out repository
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Node
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ matrix.node }}
21+
check-latest: true
22+
cache: npm
23+
24+
- name: Cache Node modules
25+
id: cache-node-modules
26+
uses: actions/cache@v2
27+
with:
28+
path: node_modules
29+
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
30+
31+
- name: Install dependencies
32+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
33+
run: npm ci
34+
35+
- name: Run tests
36+
run: npm test

.travis.yml

-4
This file was deleted.

0 commit comments

Comments
 (0)