summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/testframework-rustfmt.yml
blob: f7ee47d6619f1afe3bd90647247d592a1f9057d0 (plain)
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
# Run `cargo fmt --check` on the `test` workspace
---
name: DES Testframework - Check formatting
on:
  pull_request:
    paths:
      - 'test/**/*.rs'
      - .github/workflows/rustfmt-test.yml
      - rustfmt.toml
  workflow_dispatch:

permissions: {}

jobs:
  check-formatting-test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Install Rust components
        shell: bash
        run: rustup component add rustfmt

      - name: Check formatting
        working-directory: test
        run: |-
          rustfmt --version
          cargo fmt -- --check