Fix CI
This commit is contained in:
parent
3649f335fe
commit
031628cff9
4 changed files with 42 additions and 46 deletions
9
.github/workflows/check.yml
vendored
9
.github/workflows/check.yml
vendored
|
|
@ -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
39
.github/workflows/e2e.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue