Skip to content

Commit

Permalink
ci: add sqlx-cli in build
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscarlosjayk committed Jun 10, 2024
1 parent 636581f commit 9e8bcb9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ env:
DROPLET_IP: "${{ vars.DROPLET_IP }}"
POSTGRES_PASSWORD: "${{ secrets.POSTGRES_PASSWORD }}"
SQLX_OFFLINE: true
DATABASE_URL: "DATABASE_URL=postgres://postgres:${{ secrets.POSTGRES_PASSWORD }}@localhost:5432"

jobs:
deploy:
Expand Down Expand Up @@ -79,9 +80,7 @@ jobs:
run: |
export JWT_SECRET=secret
export DATABASE_URL=postgres://postgres:${{ secrets.POSTGRES_PASSWORD }}@localhost:5432
cargo install sqlx-cli
cargo build --verbose
cargo sqlx prepare
cargo test --verbose
# Set up Docker Buildx for multi-platform builds
Expand Down

0 comments on commit 9e8bcb9

Please sign in to comment.