-
Notifications
You must be signed in to change notification settings - Fork 169
36 lines (30 loc) · 980 Bytes
/
rust-fmt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Rustfmt
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
push:
branches:
- master
- stable
jobs:
rustfmt:
name: Cargo fmt
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
with:
access_token: ${{ github.token }}
- name: Checkout sources
uses: actions/[email protected]
with:
fetch-depth: 50
submodules: 'recursive'
- name: Install Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: cargo fmt
run: |
cd rust
cargo fmt --all -- --check