From 950f302ebf508aaad7163066cde10bcd68c35b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Saparelli?= Date: Thu, 12 Jan 2023 04:35:34 +1300 Subject: [PATCH] Lock CI for msrv checks (#482) --- .github/workflows/tests.yml | 17 +++++++++++++++-- crates/ignore-files/Cargo.toml | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8024b9c..b68bd5b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -70,10 +70,13 @@ jobs: path: target/ key: ${{ runner.os }}-target-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }} + - if: matrix.toolchain != 'stable' + run: echo "flags=--locked" >> $GITHUB_ENV + - name: Run test suite - run: cargo test + run: cargo test ${{ env.flags }} - name: Check that CLI runs - run: cargo run -p watchexec-cli -- -1 echo + run: cargo run ${{ env.flags }} -p watchexec-cli -- -1 echo cross-checks: name: Checks only against select targets @@ -109,3 +112,13 @@ jobs: - run: cargo check --target x86_64-unknown-linux-musl - run: cross check --target x86_64-unknown-freebsd - run: cross check --target x86_64-unknown-netbsd + + # Dummy job to have a stable name for the "all tests pass" requirement + tests-pass: + name: Tests pass + needs: + - test + - cross-checks + runs-on: ubuntu-latest + steps: + - run: echo "Tests pass" diff --git a/crates/ignore-files/Cargo.toml b/crates/ignore-files/Cargo.toml index 902022c..8fd18fd 100644 --- a/crates/ignore-files/Cargo.toml +++ b/crates/ignore-files/Cargo.toml @@ -16,7 +16,7 @@ edition = "2021" [dependencies] futures = "0.3.21" -git-config = "0.15.0" +git-config = "0.14.0" ignore = "0.4.18" miette = "5.3.0" thiserror = "1.0.31"