Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: check if Cargo.lock is up-to-date #11994

Merged
merged 2 commits into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ jobs:
# TODO: check every members
- run: cargo clippy -p cargo --lib --no-deps -- -D warnings

# Ensure Cargo.lock is up-to-date
lockfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup update stable && rustup default stable
- run: cargo update -p cargo --locked

test:
runs-on: ${{ matrix.os }}
env:
Expand Down
6 changes: 3 additions & 3 deletions ci/validate-man.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e

cd src/doc

changes=$(git status --porcelain)
changes=$(git status --porcelain -- .)
if [ -n "$changes" ]
then
echo "git directory must be clean before running this script."
Expand All @@ -14,10 +14,10 @@ fi

./build-man.sh

changes=$(git status --porcelain)
changes=$(git status --porcelain -- .)
if [ -n "$changes" ]
then
echo "Detected changes in man pages:"
echo "Detected changes of man pages in src/doc:"
echo "$changes"
echo
echo "Please run './build-man.sh' in the src/doc directory to rebuild the"
Expand Down