d1f8f24d8e
Colored output can be controlled on the command line with `--use-color auto|always|never`. The default is `auto`, which enables color if `imdl` detects that it is printing to a terminal. Color can be disabled entirely by setting the `NO_COLOR` environment variable. type: added
39 lines
818 B
YAML
39 lines
818 B
YAML
name: Rust
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- macos-latest
|
|
- ubuntu-latest
|
|
- windows-latest
|
|
runs-on: ${{matrix.os}}
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
components: clippy, rustfmt
|
|
override: true
|
|
- name: Version
|
|
run: |
|
|
rustup --version
|
|
cargo --version
|
|
cargo clippy --version
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
- name: Test
|
|
run: cargo test --verbose
|
|
- name: Clippy
|
|
run: cargo clippy
|
|
- name: Format
|
|
run: cargo fmt -- --check
|
|
- name: Lint
|
|
if: matrix.os != 'windows-latest'
|
|
run: "! grep --color -REn 'FIXME|TODO|XXX' src"
|