From b81dae8878125a4f6e3aad35096c3628066e311d Mon Sep 17 00:00:00 2001 From: Loewy Date: Wed, 12 Aug 2026 14:35:58 -0700 Subject: [PATCH] Provision JS checks with Nix --- .gitea/workflows/check-js.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/check-js.yaml b/.gitea/workflows/check-js.yaml index 983a650d..61978e3f 100644 --- a/.gitea/workflows/check-js.yaml +++ b/.gitea/workflows/check-js.yaml @@ -10,10 +10,13 @@ jobs: typescript: name: Check TS (tsc) runs-on: nixos-x86_64-linux + defaults: + run: + shell: nix shell nixpkgs#nodejs_20 nixpkgs#yarn -c bash -e {0} steps: - uses: actions/checkout@v4 - name: Install node_modules - uses: ./.github/actions/setup-node + run: yarn install --immutable --ignore-scripts - name: Check TypeScript run: yarn tsc - name: Test web HLS @@ -22,10 +25,13 @@ jobs: lint: name: Lint JS (eslint, prettier) runs-on: nixos-x86_64-linux + defaults: + run: + shell: nix shell nixpkgs#nodejs_20 nixpkgs#yarn -c bash -e {0} steps: - uses: actions/checkout@v4 - name: Install node_modules - uses: ./.github/actions/setup-node + run: yarn install --immutable --ignore-scripts - name: Run ESLint run: yarn lint - name: Verify auto-fix produces no changes