From 8ac57951ffff3ed01d593234b0f417016ea74a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Wed, 29 May 2024 16:54:56 +0200 Subject: [PATCH] Build in CI with --locked This ensures the Cargo.lock file stays up to date. If someone add or change a dependency in a way that require lockfile changes, the CI should fail. When the lockfile is versioned it has to stay up to date --- .github/workflows/build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index fdc0e1f..28c3b42 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -29,7 +29,7 @@ jobs: default: true - name: Build - run: cargo build --all-targets + run: cargo build --all-targets --locked - name: Test # Since the tests modify global state (the system firewall) they cannot run in parallel.