Skip to content

test(manifest,gc): positive postgres-storage case + realistic gc fixture (follow-up to #144) #195

test(manifest,gc): positive postgres-storage case + realistic gc fixture (follow-up to #144)

test(manifest,gc): positive postgres-storage case + realistic gc fixture (follow-up to #144) #195

Workflow file for this run

# SPDX-License-Identifier: PMPL-1.0-or-later
# Rust CI - cargo check + clippy + fmt + test on stable and MSRV
name: Rust CI
on:
pull_request:
push:
branches:
- main
concurrency:
group: rust-ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
check:
name: cargo check (stable)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy --all-targets -- -D warnings
test:
name: cargo test (${{ matrix.rust }})
runs-on: ubuntu-latest
needs: check
strategy:
fail-fast: false
matrix:
rust:
- "1.85"
- "stable"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.rust }}
- name: cargo test
run: cargo test --all-targets --no-fail-fast