Skip to content

Commit

Permalink
chore(PUPIL-438): add a GH worksflow to verify PRs
Browse files Browse the repository at this point in the history
runs format, linting, type checks and tests on new PRs as well as main
  • Loading branch information
carlmw committed Feb 23, 2024
1 parent 97d8282 commit 69a050c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Verify

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

jobs:
format_and_test:
name: format, lint, type-check and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- run: npm ci
- run: npm run format:check
- run: npm run lint
- run: npm run check-types
- run: npm run test:ci

0 comments on commit 69a050c

Please sign in to comment.