Skip to content

Commit a16fb94

Browse files
harlantwoodCI Bot
andauthored
CI: run lint, test, build on PRs and main (#69)
Co-authored-by: CI Bot <ci@example.com>
1 parent 3911faa commit a16fb94

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: checks
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
- run: npm ci
17+
- run: npm run lint
18+
19+
test:
20+
runs-on: ubuntu-22.04
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: 16
26+
- run: npm ci
27+
- run: npm run test:coverage
28+
29+
build: # sanity check that build does not throw errors
30+
runs-on: ubuntu-22.04
31+
steps:
32+
- uses: actions/checkout@v3
33+
- uses: actions/setup-node@v3
34+
with:
35+
node-version: 16
36+
- run: npm ci
37+
- run: npm run build

0 commit comments

Comments
 (0)