Lock CI for msrv checks (#482)
This commit is contained in:
parent
19f5bd0d1e
commit
950f302ebf
|
@ -70,10 +70,13 @@ jobs:
|
||||||
path: target/
|
path: target/
|
||||||
key: ${{ runner.os }}-target-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-target-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
|
- if: matrix.toolchain != 'stable'
|
||||||
|
run: echo "flags=--locked" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Run test suite
|
- name: Run test suite
|
||||||
run: cargo test
|
run: cargo test ${{ env.flags }}
|
||||||
- name: Check that CLI runs
|
- 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:
|
cross-checks:
|
||||||
name: Checks only against select targets
|
name: Checks only against select targets
|
||||||
|
@ -109,3 +112,13 @@ jobs:
|
||||||
- run: cargo check --target x86_64-unknown-linux-musl
|
- run: cargo check --target x86_64-unknown-linux-musl
|
||||||
- run: cross check --target x86_64-unknown-freebsd
|
- run: cross check --target x86_64-unknown-freebsd
|
||||||
- run: cross check --target x86_64-unknown-netbsd
|
- 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"
|
||||||
|
|
|
@ -16,7 +16,7 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.3.21"
|
futures = "0.3.21"
|
||||||
git-config = "0.15.0"
|
git-config = "0.14.0"
|
||||||
ignore = "0.4.18"
|
ignore = "0.4.18"
|
||||||
miette = "5.3.0"
|
miette = "5.3.0"
|
||||||
thiserror = "1.0.31"
|
thiserror = "1.0.31"
|
||||||
|
|
Loading…
Reference in New Issue