name: CIBuild
on:
push:
branches: ['**']
tags-ignore: ['**']
pull_request:
branches: ['**']
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, nightly]
steps:
- uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
components: rustfmt, clippy
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose --all-features
- name: Rustfmt
run: rustfmt -v --check **/*.rs
- name: Clippy
run: cargo clippy --all-features