Lock CI for msrv checks (#482)

This commit is contained in:
Félix Saparelli 2023-01-12 04:35:34 +13:00 committed by GitHub
parent 19f5bd0d1e
commit 950f302ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View File

@ -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"

View File

@ -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"