Move rustfmt check to GH Action

This commit is contained in:
Kirill Bulatov
2022-05-25 21:12:17 +03:00
committed by Kirill Bulatov
parent 887b0e14d9
commit 06f5e017a1
2 changed files with 5 additions and 11 deletions

View File

@@ -25,13 +25,17 @@ jobs:
submodules: true
fetch-depth: 2
- name: install rust toolchain ${{ matrix.rust_toolchain }}
- name: Install rust toolchain ${{ matrix.rust_toolchain }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust_toolchain }}
components: rustfmt, clippy
override: true
- name: Check formatting
run: cargo fmt --all -- --check
- name: Install Ubuntu postgres dependencies
if: matrix.os == 'ubuntu-latest'
run: |