summaryrefslogtreecommitdiffstats
path: root/.github/workflows/pull-request-checks.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pull-request-checks.yml')
-rw-r--r--.github/workflows/pull-request-checks.yml31
1 files changed, 16 insertions, 15 deletions
diff --git a/.github/workflows/pull-request-checks.yml b/.github/workflows/pull-request-checks.yml
index 447cffc0..51544e6e 100644
--- a/.github/workflows/pull-request-checks.yml
+++ b/.github/workflows/pull-request-checks.yml
@@ -20,21 +20,6 @@ jobs:
# https://github.com/13rac1/block-fixup-merge-action
uses: 13rac1/block-fixup-merge-action@v2.0.0
- udeps:
- name: Check for unused dependencies
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: nightly
- override: true
- - name: Run cargo-udeps
- uses: aig787/cargo-udeps-action@v1
- with:
- version: 'latest'
- args: '--all-features'
-
# JOB to run change detection
changes:
name: Filter changes
@@ -56,6 +41,22 @@ jobs:
- 'crates/**'
- 'plugins/**'
+ udeps:
+ name: Check for unused dependencies
+ runs-on: ubuntu-latest
+ if: ${{ needs.changes.outputs.rust == 'true' }}
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions-rs/toolchain@v1
+ with:
+ toolchain: nightly
+ override: true
+ - name: Run cargo-udeps
+ uses: aig787/cargo-udeps-action@v1
+ with:
+ version: 'latest'
+ args: '--all-features'
+
mdbook-build-check:
name: Run mdbook build
runs-on: ubuntu-20.04