Skip to content

Commit 6cdbfdb

Browse files
committed
Replace Travis with GitHub Actions
1 parent 69962b6 commit 6cdbfdb

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Cache node modules
13+
id: cache
14+
uses: actions/cache@v2
15+
with:
16+
path: node_modules
17+
key: cache-node-modules-${{ hashFiles('package-lock.json') }}
18+
- name: npm install
19+
if: steps.cache.outputs.cache-hit != 'true'
20+
run: npm ci
21+
- run: npm run lint
22+
- run: npm run test
23+
- run: npm run build

.travis.yml

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

0 commit comments

Comments
 (0)