Fix CI
This commit is contained in:
parent
16fc3a8234
commit
6afb828bd9
2 changed files with 13 additions and 2 deletions
|
|
@ -9,8 +9,6 @@ cargo fmt --all -- --check
|
|||
cargo machete
|
||||
cargo test --verbose
|
||||
|
||||
scripts/update-api-types.sh
|
||||
|
||||
echo "Running checks in frontend"
|
||||
cd ../frontend
|
||||
npm ci
|
||||
|
|
|
|||
|
|
@ -3,6 +3,12 @@
|
|||
set -e
|
||||
set -o pipefail
|
||||
|
||||
node_version=$(node -v | sed 's/^v\([0-9]*\).*/\1/')
|
||||
if [ "$node_version" != "22" ]; then
|
||||
echo "Error: This script requires Node.js version 22, found: $node_version"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if the argument is provided
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: $0 <number_of_processes>"
|
||||
|
|
@ -20,6 +26,13 @@ npm run build
|
|||
|
||||
../scripts/utils/wait-for-server.sh
|
||||
|
||||
../scripts/update-api-types.sh
|
||||
if [[ $(git status --porcelain) ]]; then
|
||||
git status --porcelain
|
||||
echo "Failing CI because the working directory is not clean after generating api types"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pids=()
|
||||
for i in $(seq 1 $process_count); do
|
||||
node test-client/dist/cli.js > "../logs/log_${i}.log" 2>&1 &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue