Skip to content

Commit

Permalink
try caching the database
Browse files Browse the repository at this point in the history
  • Loading branch information
TIL-EBP committed Oct 31, 2024
1 parent 5b5e2b1 commit 08c1d65
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,18 +321,18 @@ jobs:
restore-keys: |
sqlx-${{ runner.os }}-
- name: Install Rust dependencies
env:
DATABASE_URL: "postgres://www-data:www-data@localhost:15432/swissgeol-local"
run: |
docker compose up -d db
sleep 10
cd api
# - name: Install Rust dependencies
# env:
# DATABASE_URL: "postgres://www-data:www-data@localhost:15432/swissgeol-local"
# run: |
# docker compose up -d db
# sleep 10
# cd api
# sqlx database create
# sqlx migrate run
- name: Run test
run: |
docker compose up -d
docker compose up -d api
sleep 10
cd api
docker compose exec api cargo test --offline
Expand Down

0 comments on commit 08c1d65

Please sign in to comment.