2020-01-15 02:16:13 -08:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
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
|
2020-01-15 02:30:24 -08:00
|
|
|
- name: Clippy
|
2020-01-15 02:16:13 -08:00
|
|
|
run: cargo clippy
|
2020-01-15 02:30:24 -08:00
|
|
|
- name: Lint
|
|
|
|
run: cargo run lint
|
2020-01-15 02:16:13 -08:00
|
|
|
- name: Format
|
|
|
|
run: cargo fmt -- --check
|
|
|
|
- name: Completion Scripts
|
|
|
|
run: |
|
|
|
|
for script in completions/*; do
|
|
|
|
shell=${script##*.}
|
|
|
|
cargo run -- --completions $shell > $script
|
|
|
|
done
|
|
|
|
git diff --no-ext-diff --quiet --exit-code
|