diff options
author | Jake Howard <[email protected]> | 2021-03-28 16:48:45 +0100 |
---|---|---|
committer | Jake Howard <[email protected]> | 2021-03-31 21:16:57 +0100 |
commit | 15feff3e79b319dcbfd2d775d5521896a6068bc6 (patch) | |
tree | c0e58f421d15bd63e63e4a1ce4815c035fd3fb9f /.github/workflows | |
parent | 5c5700caa72a4a4e38b98ebfdc42866185965d86 (diff) | |
download | vaultwarden-15feff3e79b319dcbfd2d775d5521896a6068bc6.tar.gz vaultwarden-15feff3e79b319dcbfd2d775d5521896a6068bc6.zip |
Add fmt to CI
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c4d4620..9b476d3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,7 +89,7 @@ jobs: with: profile: minimal target: ${{ matrix.target-triple }} - components: clippy + components: clippy, rustfmt # End Uses the rust-toolchain file to determine version @@ -111,6 +111,15 @@ jobs: # End Run cargo clippy + # Run cargo fmt + - name: '`cargo fmt`' + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + # End Run cargo fmt + + # Build the binary - name: '`cargo build --release --features ${{ matrix.features }} --target ${{ matrix.target-triple }}`' uses: actions-rs/cargo@v1 |