name: Build and test
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Build and test
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
feature: ["use-log", "use-slog", "use-stderr", "use-parking-lot"]
toolchain: ["stable", "nightly"]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --features ${{ matrix.feature }}