Skip to content

Commit

Permalink
Use --locked when building in CI (#20)
Browse files Browse the repository at this point in the history
Thus the build will fail if a PR modifies Cargo.toml but forgets to
include the changes in Cargo.lock
  • Loading branch information
Loirooriol committed Apr 21, 2024
1 parent 59d00b7 commit 5f836cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Run Tests
run: cargo build --features servo
run: cargo build --locked --features servo
env:
RUST_BACKTRACE: 1

Expand All @@ -30,7 +30,7 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Run Tests
run: cargo build --release --features servo
run: cargo build --locked --release --features servo
env:
RUST_BACKTRACE: 1

Expand Down

0 comments on commit 5f836cd

Please sign in to comment.