Skip to content

Commit

Permalink
build: use cargo outdated (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayconamaroCW authored Mar 21, 2024
1 parent 5fc1f06 commit 1ebf42c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/outdated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
jobs:
outdated:
runs-on: ubuntu-latest

timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
10 changes: 8 additions & 2 deletions .justfile_helpers
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,4 +17,10 @@ _outdated:
else
echo "Outdated dependencies, quiting with error code $result"
fi
exit $result
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 $?
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1ebf42c

Please sign in to comment.