Skip to content

ci: add cargo-expand to CI #111

ci: add cargo-expand to CI

ci: add cargo-expand to CI #111

Workflow file for this run

name: Rust Check
on: push
jobs:
check:
name: Cargo Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: taiki-e/install-action@v1
with:
tool: [email protected],cargo-make
- run: cargo make check
clippy:
name: Clippy Lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: taiki-e/install-action@v1
with:
tool: [email protected],cargo-make
- run: cargo make clippy
deadlinks:
name: Cargo Deadlinks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: taiki-e/install-action@v1
with:
tool: cargo-deadlinks,cargo-make
- run: cargo make deadlinks
deny:
name: Cargo Deny
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- advisories
- bans licenses sources
# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: ${{ matrix.checks == 'advisories' }}
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}
msrv:
name: Cargo MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: taiki-e/install-action@v1
with:
tool: cargo-msrv,cargo-make
- run: cargo make msrv-verify
test:
name: Cargo Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: taiki-e/install-action@v1
with:
# cargo-expand does not have stable output, so changing the version,
# while fine, will produce test case noise
tool: [email protected],cargo-make,[email protected]
- run: cargo make test