From ff44809700f851a60244e63d7e813c3e1b82ec5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KARASZI=20Istv=C3=A1n?= Date: Mon, 19 Oct 2026 09:36:34 +0200 Subject: [PATCH] Use devenv in CI --- .github/workflows/ci.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9883e8..5d24aba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,21 +13,24 @@ jobs: steps: - uses: actions/checkout@v5 - # The action reads the pnpm version from the packageManager field in package.json. - - name: Install pnpm - uses: pnpm/action-setup@v6 + - name: Install Nix + uses: cachix/install-nix-action@v31 - - name: Use Node.js - uses: actions/setup-node@v4 + # The devenv cache has prebuilt packages, so the dev shell builds faster. + - name: Use the devenv cache + uses: cachix/cachix-action@v17 with: - node-version: "22" - cache: "pnpm" + name: devenv + - name: Install devenv + run: nix profile add nixpkgs#devenv + + # The eslint, tsc and prettier hooks use the tools from node_modules. - name: Install dependencies - run: pnpm install --frozen-lockfile + run: devenv shell -- pnpm install --frozen-lockfile - - name: Run lint - run: pnpm run lint + - name: Run the git hooks + run: devenv test - name: Run build - run: pnpm run build + run: devenv shell -- pnpm run build