Update e2e tests
This commit is contained in:
parent
81b81e30ff
commit
43311ed30b
3 changed files with 31 additions and 13 deletions
12
.github/workflows/e2e.yml
vendored
12
.github/workflows/e2e.yml
vendored
|
|
@ -36,16 +36,4 @@ jobs:
|
|||
cargo run config-e2e.yml --color never &
|
||||
cd ..
|
||||
|
||||
scripts/update-api-types.sh
|
||||
cd frontend
|
||||
npm ci
|
||||
npm run build
|
||||
npm run lint
|
||||
if [[ $(git status --porcelain) ]]; then
|
||||
git status --porcelain
|
||||
echo "Failing CI because the working directory is not clean after updating the API types"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ..
|
||||
scripts/e2e.sh 32
|
||||
|
|
|
|||
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 ..
|
||||
|
|
@ -15,6 +15,7 @@ process_count=$1
|
|||
mkdir -p logs
|
||||
|
||||
cd frontend
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
../scripts/utils/wait-for-server.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue