Improve CI

This commit is contained in:
Andras Schmelczer 2025-03-22 14:41:20 +00:00
parent 792097060b
commit 84566c1b55
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 26 additions and 20 deletions

View file

@ -25,7 +25,7 @@ jobs:
- name: Setup rust
run: |
cargo install sqlx-cli
cargo install sqlx-cli wasm-pack
cd backend
sqlx database create --database-url sqlite://db.sqlite3
sqlx migrate run --source sync_server/src/database/migrations --database-url sqlite://db.sqlite3
@ -33,7 +33,6 @@ jobs:
- name: Build wasm
run: |
cd backend
cargo install wasm-pack
wasm-pack build --target web sync_lib
- name: Lint backend
@ -57,7 +56,7 @@ jobs:
npm run lint
if [[ $(git status --porcelain) ]]; then
git status --porcelain
echo "Failing CI because the working directory is not clean after linting."
echo "Failing CI because the working directory is not clean after linting"
exit 1
fi