Skip to content

Dep reqs

Dep reqs #232

Workflow file for this run

name: Dep reqs
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 5 * * *'
env:
CARGO_TERM_COLOR: always
jobs:
minimal-deps:
# Build and test with the oldest possible versions of deps. This helps ensure the semver requirements for deps
# are OK.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v1
- name: Set up nightly
run: |
rustup install nightly-2023-06-15
rustup default nightly-2023-06-15
- name: Remove Cargo.lock
run: rm Cargo.lock
- name: Build
run: cargo build --all-features -Zminimal-versions --verbose
- name: Run tests
run: cargo test --all-features --workspace -Zminimal-versions --verbose
maximal-deps:
# Build and test with the newest possible versions of deps. This helps ensure the semver requirements for deps
# are OK.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v1
- name: Update Cargo.lock
run: cargo update
- name: Build
run: cargo build --all-features --verbose
- name: Run tests
run: cargo test --all-features --workspace --verbose