diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e2ff06..89d9905 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ @@ -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 \ No newline at end of file + run: cargo test \ No newline at end of file