Skip to content

Commit 2b94c5b

Browse files
authored
ci: add github action for ci (#248)
Also remove travis config
1 parent 6f9e391 commit 2b94c5b

File tree

2 files changed

+42
-22
lines changed

2 files changed

+42
-22
lines changed

.github/workflows/ci.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "CI"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
env:
13+
HUSKY: 0
14+
15+
jobs:
16+
test:
17+
name: "Test"
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: "Checkout"
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version: 16
28+
29+
- uses: bahmutov/npm-install@v1
30+
with:
31+
useRollingCache: true
32+
install-command: yarn --frozen-lockfile
33+
34+
- name: "Test"
35+
run: yarn test
36+
37+
- name: "Upload coverage to Codecov"
38+
uses: codecov/codecov-action@v3
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}
41+
files: coverage/lcov.info
42+
fail_ci_if_error: true

.travis.yml

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

0 commit comments

Comments
 (0)