* Upgrade arg parsing to clap v3 * Bump Rust version in CI to 1.57.0 * Make clippy happy Co-authored-by: Roey Darwish Dror <roey.ghost@gmail.com>
39 lines
996 B
YAML
39 lines
996 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: 1.57.0
|
|
profile: minimal
|
|
override: true
|
|
components: rustfmt, clippy
|
|
- uses: actions-rs/cargo@v1.0.1
|
|
name: Check format
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check
|
|
- uses: actions-rs/cargo@v1.0.1
|
|
name: Run clippy
|
|
with:
|
|
command: clippy
|
|
args: --all-targets --locked -- -D warnings
|
|
- uses: actions-rs/cargo@v1.0.1
|
|
name: Run clippy (All features)
|
|
with:
|
|
command: clippy
|
|
args: --all-targets --locked --all-features -- -D warnings
|
|
- uses: actions-rs/cargo@v1.0.1
|
|
name: Run tests
|
|
with:
|
|
command: test
|