diff options
| -rw-r--r-- | .github/workflows/main.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4494a73cfa4..6b72fd8bc82 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,6 +8,21 @@ env: RUSTFLAGS: "-Dwarnings" # Deny warnings on CI jobs: + rustfmt: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v2 + + - name: Install rustfmt + run: | + rustup component add rustfmt + + - name: Rustfmt + run: | + cargo fmt --check + build: runs-on: ${{ matrix.os }} timeout-minutes: 60 |
