Skip to content

Commit 69b44f9

Browse files
committed
chore: add github action ci
1 parent c43375f commit 69b44f9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
on:
3+
push:
4+
jobs:
5+
ci:
6+
name: Continuous Integration
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [10.x, 12.x, 14.x, 15.x]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: ${{ matrix.node-version }}
16+
- name: Cache node_modules
17+
id: cache-modules
18+
uses: actions/cache@v1
19+
with:
20+
path: node_modules
21+
key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('yarn.lock') }}
22+
- run: yarn install
23+
- run: yarn test
24+
- run: yarn build
25+
- run: yarn lint

0 commit comments

Comments
 (0)