Skip to content

Split up CI steps

Split up CI steps #29

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
jobs:
checks:
name: Lint and check formatting
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Install pnpm dependencies
run: nix develop --command pnpm install
- name: Check formatting
run: nix develop --command pnpm run check-fmt
- name: Lint
run: nix develop --command pnpm run lint
- name: Build
run: |
nix develop --command pnpm run prebuild
nix develop --command pnpm run build
- name: Check git status
run: git status --porcelain=v1
- name: Ensure no staged changes
run: test $(git status --porcelain=v1 2>/dev/null | wc -l) -eq 0