name: CI
on:
push:
branches-ignore: [staging.tmp]
pull_request:
branches-ignore: [staging.tmp]
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.36.0, stable, nightly]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- uses: actions-rs/cargo@v1
name: Downgrade bitflags to MSRV
if: ${{ matrix.rust }} == "1.36.0"
with:
command: update
args: -p bitflags --precise 1.2.1
- uses: actions-rs/cargo@v1
name: Downgrade indexmap to MSRV
if: ${{ matrix.rust }} == "1.36.0"
with:
command: update
args: -p indexmap --precise 1.6.2
- run: cargo test
- run: cargo test --all-features
clippy:
name: "Clippy: stable"
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ github.token }}
rustfmt:
name: "Format: stable"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt
override: true
- run: cargo fmt -- --check