rpm-ostree/.github/workflows/rust-lints.yml

28 lines
565 B
YAML
Raw Normal View History

---
name: Rust
on:
push:
2021-05-07 17:12:45 +03:00
branches: [main]
pull_request:
2021-05-07 17:12:45 +03:00
branches: [main]
env:
CARGO_TERM_COLOR: always
ACTIONS_LINTS_TOOLCHAIN: 1.50.0
jobs:
linting:
name: "cargo fmt"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env['ACTIONS_LINTS_TOOLCHAIN'] }}
default: true
components: rustfmt
- name: cargo fmt (check)
run: cargo fmt -- --check -l