feat(tests): resolve last test issues
This commit is contained in:
parent
4f36e40e38
commit
db9636c7ca
|
|
@ -54,17 +54,6 @@ jobs:
|
||||||
working-directory: ./frontend
|
working-directory: ./frontend
|
||||||
run: npm run build
|
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
|
- name: Start backend server
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -69,13 +69,6 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-
|
${{ 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
|
- name: Build backend
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,6 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-
|
${{ runner.os }}-cargo-
|
||||||
|
|
||||||
- name: Run database migrations
|
|
||||||
run: |
|
|
||||||
cargo install sqlx-cli --no-default-features --features postgres
|
|
||||||
sqlx migrate run
|
|
||||||
|
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue