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
|
~/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
|
@ -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 ./...
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user