Skip to content

Commit 87f84bc

Browse files
author
Dan Hansen
committed
Add github action to build and lint
1 parent 215fdd7 commit 87f84bc

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
2+
---
3+
name: Node.js CI
4+
5+
on:
6+
push:
7+
branches: [master]
8+
pull_request:
9+
branches: [master]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [14.x, 15.x]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: c-hive/gha-yarn-cache@v1
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- name: Install dependencies
28+
run: yarn --frozen-lockfile
29+
- name: Run Linters
30+
run: yarn lint

0 commit comments

Comments
 (0)