aboutsummaryrefslogtreecommitdiff
path: root/syn-mid/ci/azure-rustfmt.yml
blob: 0b20da3d5e10a956655749b7dbe4f56fef9364b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
jobs:
- job: ${{ parameters.name }}
  displayName: Rustfmt
  pool:
    vmImage: ubuntu-16.04

  steps:
    - template: azure-install-rust.yml
      parameters:
        rust: ${{ parameters.rust }}

    - script: |
        rustup component add rustfmt
        cargo fmt --version
      displayName: rustup component add rustfmt

    - script: cargo fmt --all -- --check
      displayName: cargo fmt -- --check