From 94366907d850febbae0eeadbf2600f60b1e16f08 Mon Sep 17 00:00:00 2001 From: trev Date: Tue, 18 Mar 2025 22:32:02 -0400 Subject: [PATCH] fix: install npm packages before linting --- .github/workflows/lint.yml | 4 ++++ flake.nix | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8e08dcf..9b81529 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -32,6 +32,10 @@ jobs: ~/.cache/go-build ~/go/pkg/mod ~/.npm + + - name: Install npm packages + working-directory: ./client + run: npm ci - name: Lint run: nix develop --command ts-lint \ No newline at end of file diff --git a/flake.nix b/flake.nix index 5cdaccc..6aa79f2 100644 --- a/flake.nix +++ b/flake.nix @@ -174,11 +174,17 @@ text = '' git_root=$(git rev-parse --show-toplevel) + cd "''${git_root}" + echo "Linting protobuf" + buf lint + cd "''${git_root}/client" + echo "Linting client" npm run check npm run lint cd "''${git_root}/server" + echo "Linting server" revive -config revive.toml -formatter friendly ./... ''; })