Update e2e tests
This commit is contained in:
parent
81b81e30ff
commit
43311ed30b
3 changed files with 31 additions and 13 deletions
29
scripts/check.sh
Executable file
29
scripts/check.sh
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "Running checks in sync-server"
|
||||
cd sync-server
|
||||
cargo clippy --all-targets --all-features
|
||||
cargo fmt --all -- --check
|
||||
cargo machete
|
||||
cargo test --verbose
|
||||
|
||||
scripts/update-api-types.sh
|
||||
|
||||
echo "Running checks in frontend"
|
||||
cd ../frontend
|
||||
npm ci
|
||||
npm run build
|
||||
npm run lint
|
||||
npm run test
|
||||
|
||||
if [[ $(git status --porcelain) ]]; then
|
||||
git status --porcelain
|
||||
echo "Failing CI because the working directory is not clean after linting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Success"
|
||||
|
||||
cd ..
|
||||
Loading…
Add table
Add a link
Reference in a new issue