Skip to content

Add MSRV check to CI #8

Add MSRV check to CI

Add MSRV check to CI #8

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
msrv:
name: Check MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo +nightly update -Z minimal-versions
- run: rustup update 1.75 && rustup default 1.75
- run: cargo check --all-features
test:
name: Run tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
ports:
- 5432:5432
env:
POSTGRES_USER: tusker
POSTGRES_PASSWORD: tusker
POSTGRES_DB: tusker
# Health checks to wait until Postgres has started.
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --all-features --workspace
- name: Run tests
run: cargo test --all-features --workspace
env:
PG_URL: host=127.0.0.1 port=5432 user=tusker password=tusker dbname=tusker