diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f3a39914..78915a2b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,15 +48,14 @@ jobs: with: toolchain: ${{ matrix.version.version }} - - name: Install cargo-hack and cargo-ci-cache-clean + - name: Install cargo-hack and cargo-ci-cache-clean, just uses: taiki-e/install-action@v2.47.32 with: - tool: cargo-hack,cargo-ci-cache-clean + tool: cargo-hack,cargo-ci-cache-clean,just - # - name: workaround MSRV issues - # if: matrix.version.name == 'msrv' - # run: | - # cargo update -p=time:0.3.20 --precise=0.3.16 + - name: workaround MSRV issues + if: matrix.version.name == 'msrv' + run: just downgrade-for-msrv - name: check minimal run: cargo ci-min @@ -106,15 +105,14 @@ jobs: with: toolchain: ${{ matrix.version.version }} - - name: Install cargo-hack, cargo-ci-cache-clean + - name: Install cargo-hack, cargo-ci-cache-clean, just uses: taiki-e/install-action@v2.47.32 with: - tool: cargo-hack,cargo-ci-cache-clean + tool: cargo-hack,cargo-ci-cache-clean,just - # - name: workaround MSRV issues - # if: matrix.version.name == 'msrv' - # run: | - # cargo update -p=time:0.3.20 --precise=0.3.16 + - name: workaround MSRV issues + if: matrix.version.name == 'msrv' + run: just downgrade-for-msrv - name: check minimal run: cargo ci-min diff --git a/justfile b/justfile index 4d24efc84..68cd7ab71 100644 --- a/justfile +++ b/justfile @@ -45,6 +45,15 @@ test: cargo {{ toolchain }} nextest run --workspace --all-features cargo {{ toolchain }} test --doc --workspace --all-features +# Downgrade dev-dependencies necessary to run MSRV checks/tests. +[private] +downgrade-for-msrv: + cargo update -p=native-tls --precise=0.2.13 + +# Test workspace using MSRV. +[group("test")] +test-msrv: downgrade-for-msrv (test msrv_rustup) + # Test workspace code and docs. [group("test")] test-all: test test-docs