Move e2e harness into mjs
This commit is contained in:
parent
935387c769
commit
2e4e3535e4
1 changed files with 438 additions and 162 deletions
|
|
@ -15,6 +15,8 @@ concurrency:
|
|||
|
||||
env:
|
||||
RUSTFLAGS: "-Dwarnings"
|
||||
E2E_ARTIFACTS: logs/e2e
|
||||
E2E_WORKERS: 8
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -30,6 +32,10 @@ jobs:
|
|||
with:
|
||||
node-version: "25.x"
|
||||
|
||||
- name: Install frontend dependencies
|
||||
working-directory: frontend
|
||||
run: npm ci
|
||||
|
||||
- name: Setup Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
|
|
@ -44,28 +50,12 @@ jobs:
|
|||
sqlx migrate run --source src/app_state/database/migrations --database-url sqlite://db.sqlite3
|
||||
|
||||
- name: E2E tests
|
||||
run: |
|
||||
cd sync-server
|
||||
cargo run config-e2e.yml --color never &
|
||||
SERVER_PID=$!
|
||||
cd ..
|
||||
|
||||
scripts/e2e.sh 8
|
||||
EXIT_CODE=$?
|
||||
|
||||
kill $SERVER_PID 2>/dev/null || true
|
||||
wait $SERVER_PID 2>/dev/null || true
|
||||
|
||||
exit $EXIT_CODE
|
||||
run: scripts/e2e.sh
|
||||
|
||||
- name: Upload e2e logs
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: e2e-logs
|
||||
path: logs/
|
||||
path: ${{ env.E2E_ARTIFACTS }}
|
||||
retention-days: 30
|
||||
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
run: scripts/clean-up.sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue