Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rustworthy committed Aug 24, 2024
1 parent cee2a4f commit 867fc8c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ jobs:
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
strategy:
matrix:
# That of `mio` that `tokio` depends on:
msrv: ["1.70.0"]
# SQLx is being tested against the latest rustc ("1.80.1" as of August 24, 2024)
msrv: ["1.75.0"]
name: ubuntu / ${{ matrix.msrv }}
steps:
- uses: actions/checkout@v4
Expand Down
49 changes: 24 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 867fc8c

Please sign in to comment.