fix: install npm packages before linting

This commit is contained in:
trev 2025-03-18 22:32:02 -04:00
parent ef11ac81a3
commit 94366907d8
2 changed files with 10 additions and 0 deletions

View File

@ -33,5 +33,9 @@ jobs:
~/go/pkg/mod ~/go/pkg/mod
~/.npm ~/.npm
- name: Install npm packages
working-directory: ./client
run: npm ci
- name: Lint - name: Lint
run: nix develop --command ts-lint run: nix develop --command ts-lint

View File

@ -174,11 +174,17 @@
text = '' text = ''
git_root=$(git rev-parse --show-toplevel) git_root=$(git rev-parse --show-toplevel)
cd "''${git_root}"
echo "Linting protobuf"
buf lint
cd "''${git_root}/client" cd "''${git_root}/client"
echo "Linting client"
npm run check npm run check
npm run lint npm run lint
cd "''${git_root}/server" cd "''${git_root}/server"
echo "Linting server"
revive -config revive.toml -formatter friendly ./... revive -config revive.toml -formatter friendly ./...
''; '';
}) })