Files
NLnetLabs-domain/.github/workflows/ci.yml
T
HugoandGitHub 642331fdab Upgrade required Rust version to 1.67. (#221)
This commit upgrades the minimum required Rust version to 1.67
and applies a Clippy-suggested fix.
2023-08-23 11:41:42 +02:00

32 lines
1.0 KiB
YAML

name: ci
on: [push, pull_request]
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [1.67.0, stable, beta, nightly]
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- if: matrix.rust == 'stable'
run: rustup component add clippy
- if: matrix.rust == 'stable'
run: cargo clippy --all-features -- -D warnings
- if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest'
run: cargo fmt --all -- --check
- run: cargo build --tests --no-default-features --verbose
- run: cargo test --features=ci-test --verbose
- if: matrix.rust == 'nightly'
run: |
cargo +nightly update -Z minimal-versions
cargo check --features=ci-test --verbose --all-targets
cargo test --features=ci-test
name: Check and test with minimal-versions