Skip to content

Commit

Permalink
ci: fix database error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tguntenaar committed Nov 10, 2024
1 parent 94a3da6 commit 066dbfe
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,19 @@ jobs:
- name: Install dependencies
run: sudo apt-get update -y && sudo apt-get install -y libssl-dev ca-certificates libudev-dev libusb-1.0-0-dev pkg-config libudev-dev build-essential

- name: Set up PostgreSQL database
run: |
sudo su - postgres -c "
psql -c \"CREATE DATABASE devhub_cache_api_rs\"
psql -c \"CREATE ROLE devhub_cache_api_rs WITH LOGIN PASSWORD 'password';\"
psql -c \"ALTER ROLE devhub_cache_api_rs CREATEDB;\"
psql -c \"GRANT ALL PRIVILEGES ON DATABASE devhub_cache_api_rs TO devhub_cache_api_rs;\"
"
- name: Build the project
run: cargo build --verbose
env:
SQLX_OFFLINE: true

- name: Run tests
env:
Expand Down

0 comments on commit 066dbfe

Please sign in to comment.