Skip to content

Commit 7741a7c

Browse files
committed
Add CI
1 parent 3afa73c commit 7741a7c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: "**"
6+
tags-ignore: "v*"
7+
pull_request:
8+
9+
jobs:
10+
prebuild:
11+
name: Pre-build checks
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v2
16+
17+
- name: Install Node.js v12
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: "12"
21+
22+
- name: Fetch dependencies from cache
23+
id: cache-yarn
24+
uses: actions/cache@v2
25+
with:
26+
path: "**/node_modules"
27+
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
28+
29+
- name: Install dependencies
30+
if: steps.cache-yarn.outputs.cache-hit != 'true'
31+
run: yarn --frozen-lockfile
32+
33+
- name: Run yarn lint
34+
run: yarn lint
35+
36+
- name: Run yarn test
37+
run: yarn test

0 commit comments

Comments
 (0)