Merge pull request #5 from est31/improvements #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: [push, pull_request] | |
env: | |
RUSTFLAGS: -D warnings | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
toolchain: [stable, beta, nightly] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@master | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
override: true | |
- name: Run cargo check | |
run: | | |
cargo check --all | |
- name: Run cargo clippy | |
run: | | |
cargo clippy --all | |
- name: Compile the tests | |
run: | | |
cargo test --all --all-targets --no-run --release | |
- name: Run cargo doc | |
run: | | |
cargo doc --all --all-features --release |