mirror of
https://github.com/simonask/libyaml-safer
synced 2024-11-27 05:40:20 +00:00
70 lines
1.6 KiB
YAML
70 lines
1.6 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule: [cron: "40 1 * * *"]
|
|
|
|
env:
|
|
RUSTFLAGS: -Dwarnings
|
|
|
|
jobs:
|
|
test:
|
|
name: Rust ${{matrix.rust}}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
rust: [nightly, beta, stable, 1.62.0]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{matrix.rust}}
|
|
- run: cargo test
|
|
|
|
msrv:
|
|
name: Rust 1.56.0
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dtolnay/rust-toolchain@1.56.0
|
|
- run: cargo check --lib
|
|
|
|
clippy:
|
|
name: Clippy
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name != 'pull_request'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dtolnay/rust-toolchain@clippy
|
|
- run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic
|
|
|
|
miri:
|
|
name: Miri
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dtolnay/rust-toolchain@miri
|
|
- run: cargo miri test
|
|
env:
|
|
MIRIFLAGS: -Zmiri-disable-isolation -Zmiri-strict-provenance
|
|
|
|
fuzz:
|
|
name: Fuzz
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
- uses: dtolnay/install@cargo-fuzz
|
|
- run: cargo fuzz build -O
|
|
|
|
outdated:
|
|
name: Outdated
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name != 'pull_request'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dtolnay/install@cargo-outdated
|
|
- run: cargo outdated --workspace --exit-code 1
|
|
- run: cargo outdated --manifest-path fuzz/Cargo.toml --exit-code 1
|