name: CI checks
on: [push, pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check --color always
- name: Static analysis all features
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings
- name: Test all features
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
doc-links:
name: Stable lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Check intra-doc links
uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features