mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
73a896e62c
Since we now have a toplevel workspace, just use that.
28 lines
591 B
YAML
28 lines
591 B
YAML
---
|
|
name: Rust
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
ACTIONS_LINTS_TOOLCHAIN: 1.50.0
|
|
|
|
jobs:
|
|
linting:
|
|
name: "Lints, pinned toolchain"
|
|
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, clippy
|
|
- name: cargo fmt (check)
|
|
run: cargo fmt -- --check -l
|