Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 5ce1f17

Browse files
committed
ci: migrate to github actions
1 parent 9d1ebb1 commit 5ce1f17

File tree

3 files changed

+51
-87
lines changed

3 files changed

+51
-87
lines changed

.circleci/config.yml

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

.github/workflows/check.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: check
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
check:
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macos-latest]
15+
node: [12.x, 14.x]
16+
17+
runs-on: ${{ matrix.os }}
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Use Node.js ${{ matrix.node }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node }}
26+
27+
- name: Cache dependencies
28+
uses: actions/cache@v2
29+
id: yarn-cache
30+
with:
31+
path: |
32+
**/node_modules
33+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
34+
restore-keys: |
35+
${{ runner.os }}-yarn-
36+
37+
- name: Install dependencies
38+
if: steps.yarn-cache.outputs.cache-hit != 'true'
39+
run: yarn --frozen-lockfile
40+
41+
- name: Lint
42+
run: yarn lint
43+
44+
- name: Build
45+
run: yarn build
46+
47+
- name: Test
48+
run: yarn test
49+
50+
- name: Docs build
51+
run: yarn build:docs

.travis.yml

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

0 commit comments

Comments
 (0)