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

chore(CI): validate Cargo lock file #2309

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
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
24 changes: 24 additions & 0 deletions .github/workflows/validate-cargo-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Validate Cargo.lock
on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
validate-cargo-lock:
name: Validate Cargo.lock Consistency
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rust toolchain
run: |
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
rustup default nightly-2023-06-01
- name: Validate Cargo.lock
run: |
echo "Checking if Cargo.lock is up-to-date..."
cargo update -w --locked
Comment on lines +10 to +24
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to simplify:

Suggested change
name: Validate Cargo.lock Consistency
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust toolchain
run: |
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
rustup default nightly-2023-06-01
- name: Validate Cargo.lock
run: |
echo "Checking if Cargo.lock is up-to-date..."
cargo update -w --locked
name: Checking Cargo.lock file
runs-on: ubuntu-latest
steps:
uses: actions/checkout@v3
- name: Validate Cargo.lock
run: cargo update -w --locked

Loading