diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-16 11:50:52 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-18 14:36:43 +0200 |
commit | 344a886d8fa9027931fe1ac1411785e905025045 (patch) | |
tree | cffcecaecc809dc46c19a86c0b7ad1f258ceeb67 | |
parent | 7c4087e584a48c8cd7ba85c335761705d390f524 (diff) |
Add check whether lockfile is up to date
The filter expression is written to the best of my knowledge, but I
don't know whether this actually catches all Cargo.toml files or whether
it misses the topmost one.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | .github/workflows/pull-request-checks.yml | 30 |
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 |