Skip to content

Commit dba46e5

Browse files
authored
Switch travis to github actions (#358)
* Switch CI to github actions * Upload coverage
1 parent 45b6417 commit dba46e5

File tree

2 files changed

+36
-9
lines changed

2 files changed

+36
-9
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
types: [opened, synchronize]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: lts/*
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build
26+
run: npm run build:prod
27+
28+
- name: Lint
29+
run: npm run lint
30+
31+
- name: Test
32+
run: npm run test:coverage
33+
34+
- name: Upload coverage
35+
uses: codecov/codecov-action@v2
36+

.travis.yml

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

0 commit comments

Comments
 (0)