name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
macos-checks:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Clippy
run: cargo clippy --tests --all-features -- -D warnings
- name: Format
run: cargo fmt
- name: Run tests
run: cargo test --verbose
linux-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clippy
run: cargo clippy --tests --all-features -- -D warnings
- name: Format
run: cargo fmt
- name: Run tests
run: cargo test --verbose