diff --git a/.github/workflows/outdated.yml b/.github/workflows/outdated.yml index 34750b16f..a00db47cb 100644 --- a/.github/workflows/outdated.yml +++ b/.github/workflows/outdated.yml @@ -12,7 +12,7 @@ concurrency: jobs: outdated: runs-on: ubuntu-latest - + timeout-minutes: 10 steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/.justfile_helpers b/.justfile_helpers index f58c117a7..666db89fd 100644 --- a/.justfile_helpers +++ b/.justfile_helpers @@ -3,7 +3,7 @@ _lint version="" fmt-flag="" clippy-flag="": cargo +nightly{{version}} clippy --all-targets -- {{clippy-flag}} [unix] -_outdated: +_outdated_minors_only: #!/bin/bash mkdir -p .outdated_tmp cp -p Cargo.lock .outdated_tmp/Cargo.lock @@ -17,4 +17,10 @@ _outdated: else echo "Outdated dependencies, quiting with error code $result" fi - exit $result \ No newline at end of file + exit $result + +_outdated: + #!/bin/bash + command -v cargo-outdated >/dev/null 2>&1 || { cargo install cargo-outdated; } + cargo outdated --root-deps-only --ignore-external-rel --exit-code=1 + exit $? \ No newline at end of file diff --git a/justfile b/justfile index 85de7e0be..990b58783 100644 --- a/justfile +++ b/justfile @@ -70,7 +70,7 @@ lint: lint-check nightly-version="": @just _lint "{{nightly-version}}" --check "-D warnings" -# Stratus: Check for outdated crates +# Stratus: Check for dependencies major updates outdated: @just _outdated