fix: install npm packages before linting
This commit is contained in:
parent
ef11ac81a3
commit
94366907d8
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@ -33,5 +33,9 @@ jobs:
|
||||
~/go/pkg/mod
|
||||
~/.npm
|
||||
|
||||
- name: Install npm packages
|
||||
working-directory: ./client
|
||||
run: npm ci
|
||||
|
||||
- name: Lint
|
||||
run: nix develop --command ts-lint
|
@ -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 ./...
|
||||
'';
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user