Separate workflows #89
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_call: | |
name: CI | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npm run lint | |
- name: Check formatting | |
run: | | |
npm run format | |
if [ ! "$(git status --porcelain=v1)" == "" ]; | |
then exit 1; | |
fi | |
- name: Check types | |
run: npm run typecheck | |
- name: Run tests | |
run: npm run coverage |