-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cee2a4f
commit 867fc8c
Showing
2 changed files
with
26 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,21 +119,24 @@ jobs: | |
# run cargo test on mac and windows | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }} / stable | ||
services: | ||
postgres: | ||
image: postgres:16.4 | ||
env: | ||
POSTGRES_USER: username | ||
POSTGRES_PASSWORD: password | ||
POSTGRES_HOST: "127.0.0.1" | ||
POSTGRES_DB: "pgboss" | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 127.0.0.1:5444:5432 | ||
# Container actions are only supported on Linux runners as of August 24, 2024 | ||
# So we are only building the library, not running e2e tests. | ||
# | ||
#services: | ||
# postgres: | ||
# image: postgres:16.4 | ||
# env: | ||
# POSTGRES_USER: username | ||
# POSTGRES_PASSWORD: password | ||
# POSTGRES_HOST: "127.0.0.1" | ||
# POSTGRES_DB: "pgboss" | ||
# options: >- | ||
# --health-cmd pg_isready | ||
# --health-interval 10s | ||
# --health-timeout 5s | ||
# --health-retries 5 | ||
# ports: | ||
# - 127.0.0.1:5444:5432 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -153,16 +156,12 @@ jobs: | |
- name: cargo generate-lockfile | ||
if: hashFiles('Cargo.lock') == '' | ||
run: cargo generate-lockfile | ||
- name: ensure PostgreSQL service | ||
run: | | ||
docker compose -f docker/compose.yaml up -d --build | ||
docker ps | ||
sleep 10 | ||
docker compose -f docker/compose.yaml logs postgres --tail 10 | ||
- name: run e2e tests | ||
env: | ||
POSTGRES_URL: postgres://username:[email protected]:5444/pgboss | ||
run: cargo test --locked --all-features --all-targets --test e2e -- --nocapture | ||
- name: cargo build --release | ||
run: cargo build --all-features --all-targets | ||
#- name: run e2e tests | ||
# env: | ||
# POSTGRES_URL: postgres://username:[email protected]:5444/pgboss | ||
# run: cargo test --locked --all-features --all-targets --test e2e -- --nocapture | ||
coverage: | ||
# use llvm-cov to build and collect coverage and outputs in a format that | ||
# is compatible with codecov.io | ||
|