Skip to content

Commit

Permalink
CI: run lint, test, build on PRs and main (#69)
Browse files Browse the repository at this point in the history
Co-authored-by: CI Bot <[email protected]>
  • Loading branch information
harlantwood and CI Bot authored Mar 11, 2024
1 parent 3911faa commit a16fb94
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: checks
on:
pull_request:
push:
branches:
- main

jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run lint

test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run test:coverage

build: # sanity check that build does not throw errors
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run build

0 comments on commit a16fb94

Please sign in to comment.