Skip to content

Commit

Permalink
Fix pipeline II
Browse files Browse the repository at this point in the history
  • Loading branch information
quambene committed Apr 3, 2024
1 parent 2428836 commit 706806c
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
pull_request:
env:
CARGO_TERM_COLOR: always
DB_HOST: 127.0.0.1
DB_PORT: 5432
DB_USER: pigeon
DB_PASSWORD: pigeon-pw
DB_NAME: pigeon-db
jobs:
check:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -51,12 +56,6 @@ jobs:
- name: cargo test --lib
run: cargo test --lib --locked
integration-test:
env:
DB_HOST: 127.0.0.1
DB_PORT: 5432
DB_USER: pigeon
DB_PASSWORD: pigeon-pw
DB_NAME: pigeon-db
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -73,12 +72,18 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
os: [macos-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: cargo test --lib
run: cargo test --lib --locked
- name: Start container
run: docker compose up -d
- name: cargo test --test '*'
run: cargo test --test '*' --locked
- name: Stop container
run: docker compose down -v
doc-test:
runs-on: ubuntu-latest
steps:
Expand All @@ -98,8 +103,12 @@ jobs:
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: Start container
run: docker compose up -d
- name: cargo llvm-cov
run: cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
- name: Stop container
run: docker compose down -v
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 706806c

Please sign in to comment.