Skip to content

Commit

Permalink
ci: set the correct variable for testing with postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
etorreborre committed Jan 10, 2025
1 parent 6902370 commit 0c4d9cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,7 @@ jobs:
- name: Run postgres test on ${{ matrix.test_projects }}
run: |
pg_ctl -D /var/lib/postgresql/data -l logfile start
export OCKAM_POSTGRES_HOST=localhost
export OCKAM_POSTGRES_PORT=5432
export OCKAM_POSTGRES_DATABASE_NAME=test
export OCKAM_POSTGRES_USER=postgres
export OCKAM_POSTGRES_PASSWORD=password
export OCKAM_DATABASE_CONNECTION_URL=postgres://postgres:password@localhost:5432/test
make -f implementations/rust/Makefile test_postgres
- name: Nix Upload Store
Expand Down
6 changes: 1 addition & 5 deletions implementations/rust/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ nextest_%:
cargo --locked nextest --config-file $(ROOT_DIR)/tools/nextest/.config/nextest.toml run -E 'package($*)' --no-fail-fast
cargo --locked test --doc
test_postgres:
export OCKAM_POSTGRES_HOST=localhost
export OCKAM_POSTGRES_PORT=5433
export OCKAM_POSTGRES_DATABASE_NAME=test
export OCKAM_POSTGRES_USER=postgres
export OCKAM_POSTGRES_PASSWORD=password
export OCKAM_DATABASE_CONNECTION_URL=postgres://postgres:password@localhost:5433/test
cargo --locked nextest --config-file $(ROOT_DIR)/tools/nextest/.config/nextest.toml run -E 'test(sql) or test(cli_state)' --no-fail-fast --test-threads 1

lint: lint_cargo_fmt_check lint_cargo_deny lint_cargo_clippy
Expand Down

0 comments on commit 0c4d9cb

Please sign in to comment.