-
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
d37c2c0
commit ee02fdf
Showing
1 changed file
with
21 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
branches: [main] | ||
pull_request: | ||
schedule: | ||
- cron: '7 7 * * *' | ||
- cron: "7 7 * * *" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
@@ -27,8 +27,16 @@ jobs: | |
- name: cargo generate-lockfile | ||
if: hashFiles('Cargo.lock') == '' | ||
run: cargo generate-lockfile | ||
- name: cargo test --locked | ||
run: cargo test --locked --all-features --all-targets | ||
- 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 | ||
# https://twitter.com/alcuadrado/status/1571291687837732873 | ||
update: | ||
# This action checks that updating the dependencies of this crate to the latest available that | ||
|
@@ -51,8 +59,16 @@ jobs: | |
- name: cargo update | ||
if: hashFiles('Cargo.lock') != '' | ||
run: cargo update | ||
- name: cargo test | ||
- name: ensure PostgreSQL service | ||
if: hashFiles('Cargo.lock') != '' | ||
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 | ||
if: hashFiles('Cargo.lock') != '' | ||
run: cargo test --locked --all-features --all-targets | ||
env: | ||
POSTGRES_URL: postgres://username:[email protected]:5444/pgboss | ||
RUSTFLAGS: -D deprecated | ||
run: cargo test --locked --all-features --all-targets --test e2e -- --nocapture |