Skip to content

Commit 3824908

Browse files
committed
ci: switch to github actions
1 parent 9ef4305 commit 3824908

File tree

2 files changed

+45
-13
lines changed

2 files changed

+45
-13
lines changed

.github/workflows/test.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Node CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
types: [opened, synchronize, reopened]
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [12.x]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: Get yarn cache directory path
28+
id: yarn-cache-dir-path
29+
run: echo "::set-output name=dir::$(yarn cache dir)"
30+
31+
- uses: actions/cache@v2
32+
with:
33+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
34+
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
35+
restore-keys: |
36+
${{ runner.os }}-yarn-${{ matrix.node-version }}-
37+
38+
- name: install dependencies
39+
run: yarn --frozen-lockfile
40+
41+
- name: run tests
42+
run: yarn test
43+
44+
- name: run build
45+
run: yarn run build

.travis.yml

-13
This file was deleted.

0 commit comments

Comments
 (0)