From bc3f193e6e153de844c7641b18a0e28872b4df09 Mon Sep 17 00:00:00 2001 From: Joshua Chapman Date: Wed, 20 Mar 2024 17:54:06 +0100 Subject: [PATCH] ci: update workflows with latest versions Signed-off-by: Joshua Chapman --- .github/workflows/check.yaml | 12 ++++++------ .github/workflows/e2e-test.yaml | 2 +- .github/workflows/test.yaml | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 5d72b729..9279a834 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -53,7 +53,7 @@ jobs: toolchain: ${{ matrix.toolchain }} components: clippy - name: Install sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 + uses: mozilla-actions/sccache-action@v0.0.4 - name: cargo clippy run: cargo clippy --all-targets --all-features --workspace -- -D warnings doc: @@ -64,7 +64,7 @@ jobs: - name: Install nightly uses: dtolnay/rust-toolchain@nightly - name: Install sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 + uses: mozilla-actions/sccache-action@v0.0.4 - name: cargo doc run: cargo doc --no-deps --all-features --workspace env: @@ -77,7 +77,7 @@ jobs: - name: Install stable uses: dtolnay/rust-toolchain@stable - name: Install sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 + uses: mozilla-actions/sccache-action@v0.0.4 - name: cargo install cargo-hack uses: taiki-e/install-action@cargo-hack - name: cargo hack @@ -96,11 +96,11 @@ jobs: - name: Install cargo minimal-versions uses: taiki-e/install-action@cargo-minimal-versions - name: Install sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 + uses: mozilla-actions/sccache-action@v0.0.4 - name: rustup default stable run: rustup default stable - name: Check minimal versions - run: cargo minimal-versions check --workspace --ignore-private --detach-path-deps --direct + run: cargo minimal-versions check --workspace --ignore-private --detach-path-deps=skip-exact --direct env: RUSTFLAGS: -D warnings msrv: @@ -116,7 +116,7 @@ jobs: with: toolchain: ${{ matrix.msrv }} - name: Install sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 + uses: mozilla-actions/sccache-action@v0.0.4 - name: cargo +${{ matrix.msrv }} check run: cargo check --all-features --workspace # Run semver-check on release branch push or PR diff --git a/.github/workflows/e2e-test.yaml b/.github/workflows/e2e-test.yaml index 404dface..e79e597a 100644 --- a/.github/workflows/e2e-test.yaml +++ b/.github/workflows/e2e-test.yaml @@ -55,7 +55,7 @@ jobs: - name: Install stable uses: dtolnay/rust-toolchain@stable - name: Install sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 + uses: mozilla-actions/sccache-action@v0.0.4 - name: Run test run: | cargo test --package astarte-device-sdk --test e2etest -- run_e2etest --exact --nocapture --ignored diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 46520d84..56defed1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -42,7 +42,7 @@ jobs: with: toolchain: ${{ matrix.toolchain }} - name: Install sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 + uses: mozilla-actions/sccache-action@v0.0.4 - name: cargo generate-lockfile if: hashFiles('Cargo.lock') == '' run: cargo generate-lockfile @@ -63,10 +63,10 @@ jobs: - name: Install stable uses: dtolnay/rust-toolchain@stable - name: Install sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 + uses: mozilla-actions/sccache-action@v0.0.4 # Setup vcpkg binary cache # https://learn.microsoft.com/en-us/vcpkg/users/binarycaching#gha-quickstart - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); @@ -90,7 +90,7 @@ jobs: with: components: llvm-tools-preview - name: Install sccache-cache - uses: mozilla-actions/sccache-action@v0.0.3 + uses: mozilla-actions/sccache-action@v0.0.4 - name: cargo install cargo-tarpaulin uses: taiki-e/install-action@cargo-tarpaulin - name: cargo generate-lockfile @@ -99,7 +99,7 @@ jobs: - name: Run cargo-tarpaulin with xml output run: cargo tarpaulin --engine llvm --locked --all-features --ignore-tests --lib --out xml -- --test-threads 1 - name: Upload to codecov.io - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{secrets.CODECOV_TOKEN}} fail_ci_if_error: true