Skip to content

Commit f4d99bd

Browse files
committed
Add github workflow
1 parent 75f86c5 commit f4d99bd

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [16.x]
20+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Setup node
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: ${{ matrix.node }}
28+
29+
- uses: c-hive/gha-yarn-cache@v2
30+
31+
- name: Install JS dependencies
32+
run: yarn install
33+
34+
- name: Lint
35+
run: yarn lint
36+
37+
- name: Test
38+
run: yarn test

0 commit comments

Comments
 (0)