diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-12-30 12:09:44 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-12-30 12:11:07 +0100 |
| commit | 40e88469ceafc876d9f9f6358ab4fd45aaa9d0c5 (patch) | |
| tree | 7d505a9bdfa2d541c9cdcc99163065f1e0d8a664 | |
| parent | 9bcdb530531803b60b8e7b05bd58c2a544460af4 (diff) | |
| download | rust-40e88469ceafc876d9f9f6358ab4fd45aaa9d0c5.tar.gz rust-40e88469ceafc876d9f9f6358ab4fd45aaa9d0c5.zip | |
Enforce rustfmt on CI
Fixes #1214
| -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 |
