feat(tests): resolve last test issues
This commit is contained in:
parent
4c946ca9cc
commit
2c664de159
|
|
@ -54,17 +54,6 @@ jobs:
|
|||
working-directory: ./frontend
|
||||
run: npm run build
|
||||
|
||||
- name: Run database migrations
|
||||
run: |
|
||||
# Set environment variables for test database
|
||||
export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/readur_test"
|
||||
export TEST_MODE=true
|
||||
|
||||
# Run migrations
|
||||
cargo run --bin migrate
|
||||
env:
|
||||
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/readur_test
|
||||
TEST_MODE: true
|
||||
|
||||
- name: Start backend server
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -69,13 +69,6 @@ jobs:
|
|||
restore-keys: |
|
||||
${{ runner.os }}-cargo-
|
||||
|
||||
- name: Install sqlx-cli
|
||||
run: cargo install sqlx-cli --no-default-features --features postgres
|
||||
|
||||
- name: Run database migrations
|
||||
run: sqlx migrate run
|
||||
env:
|
||||
DATABASE_URL: postgres://postgres:postgres@localhost:5432/readur_test
|
||||
|
||||
- name: Build backend
|
||||
run: cargo build --release
|
||||
|
|
|
|||
|
|
@ -63,10 +63,6 @@ jobs:
|
|||
restore-keys: |
|
||||
${{ runner.os }}-cargo-
|
||||
|
||||
- name: Run database migrations
|
||||
run: |
|
||||
cargo install sqlx-cli --no-default-features --features postgres
|
||||
sqlx migrate run
|
||||
|
||||
- name: Run integration tests
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue