From 79c441b1bac35e34296eb31dbf31395e84a63b47 Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Wed, 15 Feb 2023 17:10:15 +0000 Subject: [PATCH 1/3] feat: fail if lockfile isn't up to date --- .github/workflows/rust-clippy.yml | 2 +- .github/workflows/rust-test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index d36d46f..98941a8 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -31,4 +31,4 @@ jobs: - name: Run cargo clippy working-directory: ${{ inputs.working-directory }} run: | - cargo clippy -- -D warnings + cargo clippy --frozen -- -D warnings diff --git a/.github/workflows/rust-test.yml b/.github/workflows/rust-test.yml index 24630fb..bf4d2d6 100644 --- a/.github/workflows/rust-test.yml +++ b/.github/workflows/rust-test.yml @@ -106,4 +106,4 @@ jobs: - name: Run cargo test working-directory: ${{ inputs.working-directory }} run: | - cargo test -- --test-threads=1 + cargo test --frozen -- --test-threads=1 From 81c4dc24fbe079ee006cad571fc38d5619a1fc0d Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Wed, 15 Feb 2023 17:28:19 +0000 Subject: [PATCH 2/3] fix: replace `frozen` flag with `locked` flag --- .github/workflows/rust-clippy.yml | 2 +- .github/workflows/rust-test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index 98941a8..fd3647c 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -31,4 +31,4 @@ jobs: - name: Run cargo clippy working-directory: ${{ inputs.working-directory }} run: | - cargo clippy --frozen -- -D warnings + cargo clippy --locked -- -D warnings diff --git a/.github/workflows/rust-test.yml b/.github/workflows/rust-test.yml index bf4d2d6..6365a72 100644 --- a/.github/workflows/rust-test.yml +++ b/.github/workflows/rust-test.yml @@ -106,4 +106,4 @@ jobs: - name: Run cargo test working-directory: ${{ inputs.working-directory }} run: | - cargo test --frozen -- --test-threads=1 + cargo test --locked -- --test-threads=1 From 8844f5eec5ff3032978d0ba18ebef1df14c56653 Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Wed, 15 Feb 2023 17:31:10 +0000 Subject: [PATCH 3/3] fix: add `locked` flag to remaining workflow --- .github/workflows/rust-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust-test.yml b/.github/workflows/rust-test.yml index 6365a72..a77db3c 100644 --- a/.github/workflows/rust-test.yml +++ b/.github/workflows/rust-test.yml @@ -63,7 +63,7 @@ jobs: - name: Run cargo test working-directory: ${{ inputs.working-directory }} run: | - cargo test -- --test-threads=1 + cargo test --locked -- --test-threads=1 test_clang10: name: Test with clang 10