This commit is contained in:
Andras Schmelczer 2025-03-16 10:32:43 +00:00
parent 3649f335fe
commit 031628cff9
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
4 changed files with 42 additions and 46 deletions

View file

@ -59,12 +59,3 @@ jobs:
run: |
cd frontend
npm run test
- name: E2E tests
run: |
cd ../backend
UST_BACKTRACE=1 cargo run -p sync_server &
cd -
npm run build
test-client/run.sh 32

39
.github/workflows/e2e.yml vendored Normal file
View file

@ -0,0 +1,39 @@
name: E2E tests
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Setup
run: |
cargo install sqlx-cli
cd backend
sqlx database create --database-url sqlite://db.sqlite3
sqlx migrate run --source sync_server/src/database/migrations --database-url sqlite://db.sqlite3
- name: Build wasm
run: |
cd backend
cargo install wasm-pack
wasm-pack build --target web sync_lib
- name: E2E tests
run: |
UST_BACKTRACE=1 cargo run -p sync_server &
cd ../frontend
npm run build
test-client/run.sh 32