diff --git a/.github/template/template.yml b/.github/template/template.yml index 6e7bb17..4e00cff 100644 --- a/.github/template/template.yml +++ b/.github/template/template.yml @@ -5,7 +5,7 @@ on: env: RUST_TOOLCHAIN: nightly-2022-03-09 CARGO_TERM_COLOR: always - CACHE_KEY_SUFFIX: 20220324 + CACHE_KEY_SUFFIX: 20220328 jobs: misc-check: @@ -71,11 +71,10 @@ jobs: run: | # If new CI checks are added, the one with `--locked` must be run first. cargo clippy --all-targets --locked -- -D warnings - - name: Install required tools for test with coverage - if: steps.cache.outputs.cache-hit != 'true' - run: | - cargo install cargo-llvm-cov - cargo install cargo-nextest + - if: steps.cache.outputs.cache-hit != 'true' + uses: taiki-e/install-action@cargo-llvm-cov + - if: steps.cache.outputs.cache-hit != 'true' + uses: taiki-e/install-action@nextest - name: Run rust test with coverage run: | cargo llvm-cov nextest --lcov --output-path lcov.info diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5ebaf8c..f4de97f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ on: env: RUST_TOOLCHAIN: nightly-2022-03-09 CARGO_TERM_COLOR: always - CACHE_KEY_SUFFIX: 20220324 + CACHE_KEY_SUFFIX: 20220328 jobs: misc-check: name: misc check @@ -77,11 +77,10 @@ jobs: run: | # If new CI checks are added, the one with `--locked` must be run first. cargo clippy --all-targets --locked -- -D warnings - - name: Install required tools for test with coverage - if: steps.cache.outputs.cache-hit != 'true' - run: | - cargo install cargo-llvm-cov - cargo install cargo-nextest + - if: steps.cache.outputs.cache-hit != 'true' + uses: taiki-e/install-action@cargo-llvm-cov + - if: steps.cache.outputs.cache-hit != 'true' + uses: taiki-e/install-action@nextest - name: Run rust test with coverage run: | cargo llvm-cov nextest --lcov --output-path lcov.info diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index ce36f5b..af26cab 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -12,7 +12,7 @@ on: env: RUST_TOOLCHAIN: nightly-2022-03-09 CARGO_TERM_COLOR: always - CACHE_KEY_SUFFIX: 20220324 + CACHE_KEY_SUFFIX: 20220328 jobs: misc-check: name: misc check @@ -76,11 +76,10 @@ jobs: run: | # If new CI checks are added, the one with `--locked` must be run first. cargo clippy --all-targets --locked -- -D warnings - - name: Install required tools for test with coverage - if: steps.cache.outputs.cache-hit != 'true' - run: | - cargo install cargo-llvm-cov - cargo install cargo-nextest + - if: steps.cache.outputs.cache-hit != 'true' + uses: taiki-e/install-action@cargo-llvm-cov + - if: steps.cache.outputs.cache-hit != 'true' + uses: taiki-e/install-action@nextest - name: Run rust test with coverage run: | cargo llvm-cov nextest --lcov --output-path lcov.info