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 8dc5d4e
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 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 @@ -56,50 +62,41 @@ jobs:
-d -p 5437:5432 postgres:17.0-alpine \
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: Fmt
with:
run: cargo fmt --all --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 8dc5d4e

Please sign in to comment.