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 ./... ''; })