2022-04-05 17:38:39 +02:00
|
|
|
name: CI
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
jobs:
|
2024-04-29 15:15:25 +02:00
|
|
|
typescript-action:
|
2024-04-22 00:42:23 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-04-05 17:38:39 +02:00
|
|
|
steps:
|
2023-10-11 03:17:10 +02:00
|
|
|
- uses: actions/checkout@v4
|
2022-04-05 17:38:39 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Install Nix
|
2023-02-08 18:37:07 +01:00
|
|
|
uses: DeterminateSystems/nix-installer-action@main
|
2023-07-14 11:21:02 +02:00
|
|
|
- name: Enable magic Nix cache
|
|
|
|
uses: DeterminateSystems/magic-nix-cache-action@main
|
2024-04-26 19:19:53 +02:00
|
|
|
- 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 build
|
|
|
|
- name: Run test suite
|
|
|
|
run: nix develop --command pnpm run test
|
|
|
|
- name: Package
|
|
|
|
run: nix develop --command pnpm run package
|
|
|
|
- name: Check git status
|
|
|
|
run: git status --porcelain=v1
|
|
|
|
- name: Ensure no staged changes
|
|
|
|
run: git diff --exit-code
|