diff options
author | Lukasz Woznicki <75632179+makr11st@users.noreply.github.com> | 2021-06-02 12:47:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 12:47:30 +0100 |
commit | bdeaccd843ad3bfde026e6f1303c5193d9e9a581 (patch) | |
tree | 2b2b33679abcc21ac2b8b33557e590a507523d1d | |
parent | 0619618253c25273d7f53e6c74cabc1cd12732d5 (diff) |
Add MSRV check to commit workflow (#227)
* Add MSRV check to commit workflow
* Update MSRV to 1.51
-rw-r--r-- | .github/workflows/commit-workflow.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/commit-workflow.yml b/.github/workflows/commit-workflow.yml index 2961467f..369b2cf9 100644 --- a/.github/workflows/commit-workflow.yml +++ b/.github/workflows/commit-workflow.yml @@ -171,3 +171,30 @@ jobs: # https://github.com/marketplace/actions/rust-cargo with: command: outdated + + cargo-msrv: + name: Run cargo msrv + runs-on: Ubuntu-20.04 + needs: [cargo-fmt, cargo-clippy] + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Enable cache + # https://github.com/marketplace/actions/rust-cache + uses: Swatinem/rust-cache@v1 + + - name: Cargo install msrv + uses: actions-rs/cargo@v1 + # https://github.com/marketplace/actions/rust-cargo + with: + command: install + args: cargo-msrv + + - name: Cargo msrv + uses: actions-rs/cargo@v1 + # https://github.com/marketplace/actions/rust-cargo + with: + command: msrv + args: --minimum 1.51.0 |