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 Mar 16, 2024
1 parent ff645c8 commit 8d29e4f
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 8d29e4f

Please sign in to comment.