-
Notifications
You must be signed in to change notification settings - Fork 119
chore(CI): validate Cargo lock file #2309
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,9 @@ jobs: | |
| - name: Build cache | ||
| uses: ./.github/actions/build-cache | ||
|
|
||
| - name: Backup Cargo.lock | ||
| run: cp Cargo.lock Cargo.lock.bak | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could simply run
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cool, does the job! commit 4d83f94 |
||
|
|
||
| - name: fmt check | ||
| # Format checks aren't OS dependant. | ||
| if: matrix.os == 'ubuntu-latest' | ||
|
|
@@ -37,6 +40,14 @@ jobs: | |
| - name: clippy lint | ||
| run: cargo clippy --all-targets --all-features -- --D warnings | ||
|
|
||
| - name: Validate Cargo.lock | ||
| run: | | ||
| if ! diff Cargo.lock Cargo.lock.bak; then | ||
| echo "Error: Cargo.lock has changed during the workflow. Ensure Cargo.lock is up-to-date and committed." | ||
| exit 1 | ||
| fi | ||
| shell: bash | ||
|
|
||
| wasm-lint: | ||
| name: Wasm Lint Checks | ||
| timeout-minutes: 45 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would create separate pipeline for checking
Cargo.lock