Skip to content

Commit

Permalink
CI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pawurb committed Oct 9, 2024
1 parent e56797c commit ce5227b
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ on:

jobs:
build:
name: test ${{ matrix.rust }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: ["stable", "beta", "nightly"]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run PostgreSQL 12
run: |
docker run --env POSTGRES_USER=postgres \
Expand Down Expand Up @@ -57,49 +63,41 @@ jobs:
postgres -c shared_preload_libraries=pg_stat_statements
sleep 15
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Check
uses: actions-rs/cargo@v1
with:
command: check
run: cargo check
- name: Lint
run: cargo clippy --all --all-features -- -D warnings
- name: Run tests for PG 12
env:
PG_VERSION: 12
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test
- name: Run tests for PG 13
env:
PG_VERSION: 13
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test
- name: Run tests for PG 14
env:
PG_VERSION: 14
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test
- name: Run tests for PG 15
env:
PG_VERSION: 15
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test
- name: Run tests for PG 16
env:
PG_VERSION: 16
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test
- name: Run tests for PG 17
env:
PG_VERSION: 17
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test

0 comments on commit ce5227b

Please sign in to comment.