chore(CI): adapt GitHub action to Nix environment

This commit is contained in:
2025-12-10 01:32:52 +01:00
parent b25f715fbf
commit 3aa62aea34

View File

@@ -4,31 +4,37 @@ on: push
jobs: jobs:
ci: ci:
runs-on: ${{ matrix.os }} runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node: [22]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Install pnpm - name: Install Nix
uses: pnpm/action-setup@v4 uses: cachix/install-nix-action@v27
- name: Install node
uses: actions/setup-node@v6
with: with:
node-version: ${{ matrix.node }} nix_path: nixpkgs=channel:nixos-unstable
cache: pnpm
- name: Install dependencies - name: Install dependencies
run: pnpm install run: |
nix develop --no-pure-eval --command pnpm install --frozen-lockfile
- name: Lint
run: pnpm run lint
- name: Typecheck - name: Typecheck
run: pnpm run typecheck run: |
nix develop --no-pure-eval --command pnpm run typecheck
- name: Lint
run: |
nix develop --no-pure-eval --command pnpm run lint
- name: Check formatting
run: |
nix develop --no-pure-eval --command pnpm run format-check
- name: Tests
run: |
nix develop --no-pure-eval --command pnpm run test
- name: Build
run: |
nix develop --no-pure-eval --command pnpm run build