Workflow fix attempt
This commit is contained in:
@@ -16,11 +16,11 @@ jobs:
|
|||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:$POSTGRES_VERSION
|
image: postgres:17.4
|
||||||
env:
|
env:
|
||||||
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
|
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
|
||||||
POSTGRES_USER: $POSTGRES_USER
|
POSTGRES_USER: icarus
|
||||||
POSTGRES_DB: $POSTGRES_DB
|
POSTGRES_DB: icarus_db
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
options: >-
|
options: >-
|
||||||
@@ -47,11 +47,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup test database
|
- name: Setup test database
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: "postgres://$POSTGRES_USER:${{ secrets.POSTGRES_PASSWORD }}@localhost:5432/$POSTGRES_DB"
|
DATABASE_URL: "postgres://icarus:${{ secrets.POSTGRES_PASSWORD }}@localhost:5432/icarus_db"
|
||||||
run: |
|
run: |
|
||||||
# Wait for PostgreSQL to be ready
|
# Wait for PostgreSQL to be ready
|
||||||
for i in {1..10}; do
|
for i in {1..10}; do
|
||||||
pg_isready -U $POSTGRES_USER -d $POSTGRES_DB && break
|
pg_isready -U icarus -d icarus_db && break
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: "postgres://${{ env.POSTGRES_USER }}:${{ secrets.POSTGRES_PASSWORD }}@localhost:5432/${{ env.POSTGRES_DB }}"
|
DATABASE_URL: "postgres://icarus:${{ secrets.POSTGRES_PASSWORD }}@localhost:5432/icarus_db"
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
|
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
|
|||||||
Reference in New Issue
Block a user