summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDidier Wenzek <didier.wenzek@acidalie.com>2022-08-18 15:57:00 +0200
committerGitHub <noreply@github.com>2022-08-18 15:57:00 +0200
commit34d12054c52d797dc15155d2762ed1c7c7cec9d9 (patch)
tree9e69d39949fa457dd0044c780884da2bd9eb5a9a
parent52b5b185ba9e0564c11da74f26af99035fafa151 (diff)
parent344a886d8fa9027931fe1ac1411785e905025045 (diff)
Merge pull request #1339 from matthiasbeyer/gh-actions/check-cargolock-up-to-date
Add check whether lockfile is up to date
-rw-r--r--.github/workflows/pull-request-checks.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/pull-request-checks.yml b/.github/workflows/pull-request-checks.yml
index 49080505..3c562282 100644
--- a/.github/workflows/pull-request-checks.yml
+++ b/.github/workflows/pull-request-checks.yml
@@ -44,6 +44,36 @@ jobs:
workflows:
- '.github/workflows/**'
+ #
+ # Checking that Cargo.lock is up to date
+ #
+ check-lockfile-uptodate:
+ name: Check whether Cargo.lock is up to date
+ runs-on: ubuntu-20.04
+ outputs:
+ locks: ${{ steps.filter.outputs.locks }}
+ steps:
+ - uses: actions/checkout@v3
+ - uses: dtolnay/rust-toolchain@1.58.1
+ with:
+ targets: armv7-unknown-linux-gnueabihf
+
+ - uses: Swatinem/rust-cache@v1
+
+ - uses: dorny/paths-filter@v2
+ id: filter
+ with:
+ filters: |
+ locks:
+ - '**/Cargo.toml'
+
+ - name: Check whether lockfile is up to date
+ if: steps.filter.outputs.locks == 'true'
+ uses: actions-rs/cargo@v1
+ with:
+ command: check
+ args: --locked
+
udeps:
name: Check for unused dependencies
runs-on: ubuntu-latest