Skip to content

Commit 1d3939c

Browse files
authored
chore(test): move to Github Actions (#2301)
1 parent af238cd commit 1d3939c

File tree

2 files changed

+30
-18
lines changed

2 files changed

+30
-18
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Unit tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2-beta
11+
with:
12+
node-version: '12'
13+
check-latest: true
14+
- name: yarn cache dir
15+
id: yarn-cache-dir-path
16+
run: echo "::set-output name=dir::$(yarn cache dir)"
17+
- uses: actions/cache@v2
18+
with:
19+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
20+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.json') }}
21+
restore-keys: |
22+
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.json') }}
23+
${{ runner.os }}-yarn-
24+
${{ runner.os }}-
25+
- name: yarn test
26+
run: |
27+
yarn install --frozen-lockfile
28+
yarn lint
29+
yarn build
30+
yarn test:all

.travis.yml

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

0 commit comments

Comments
 (0)