35 lines
769 B
YAML
35 lines
769 B
YAML
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
|
|
- name: Clippy
|
|
run: cargo clippy
|
|
- name: Lint
|
|
run: cargo run lint
|
|
- 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
|