Skip to content

Commit 06b8cc9

Browse files
committed
Use Github actions for CI
1 parent 7786d15 commit 06b8cc9

File tree

2 files changed

+41
-19
lines changed

2 files changed

+41
-19
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: 'CI'
2+
on:
3+
pull_request:
4+
branches: [master]
5+
6+
jobs:
7+
test_and_lint:
8+
name: 'Test'
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 5
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: volta-cli/action@v1
15+
16+
- name: Get package manager's global cache path
17+
id: global-cache-dir-path
18+
run: echo "::set-output name=dir::$(yarn cache dir)"
19+
20+
- name: Cache package manager's global cache and node_modules
21+
id: cache-dependencies
22+
uses: actions/cache@v2
23+
with:
24+
path: |
25+
${{ steps.global-cache-dir-path.outputs.dir }}
26+
node_modules
27+
key: ${{ runner.os }}-${{ matrix.node-version }}-${{
28+
hashFiles('**/yarn.lock'
29+
) }}
30+
restore-keys: |
31+
${{ runner.os }}-${{ matrix.node-version }}-
32+
33+
- name: Install
34+
run: yarn install
35+
36+
- name: Run tests and linting
37+
run: yarn test
38+
39+
40+
41+

.travis.yml

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

0 commit comments

Comments
 (0)