* Color CI output * Improve `CommandExt` * Add comments explaining `#[allow]`s * Remove useless `dead_code` annotation * Improve error messages * Print errors when running a shell errors * fixup! Remove useless `dead_code` annotation
71 lines
1.7 KiB
YAML
71 lines
1.7 KiB
YAML
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
|
|
name: Check and Lint
|
|
|
|
jobs:
|
|
check:
|
|
name: Check
|
|
strategy:
|
|
matrix:
|
|
platform: [ ubuntu-latest, macos-latest, windows-latest ]
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: check
|
|
args: --color always
|
|
|
|
fmt:
|
|
name: Rustfmt
|
|
strategy:
|
|
matrix:
|
|
platform: [ ubuntu-latest, macos-latest, windows-latest ]
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
- run: rustup component add rustfmt
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check --color always
|
|
|
|
clippy:
|
|
name: Clippy
|
|
strategy:
|
|
matrix:
|
|
platform: [ ubuntu-latest, macos-latest, windows-latest ]
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
components: clippy
|
|
override: true
|
|
- uses: actions-rs/cargo@v1.0.1
|
|
with:
|
|
command: clippy
|
|
args: --color always --all-targets --locked -- -D warnings
|
|
name: Clippy Output
|
|
- uses: actions-rs/cargo@v1.0.1
|
|
with:
|
|
command: clippy
|
|
args: --color always --all-targets --locked --all-features -- -D warnings
|
|
name: Clippy (All features) Output
|