Skip to content

Commit

Permalink
ci: update workflows with latest versions
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Chapman <[email protected]>
  • Loading branch information
joshuachp committed Mar 20, 2024
1 parent ea692a8 commit bc3f193
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: Install sccache-cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].4
- name: cargo clippy
run: cargo clippy --all-targets --all-features --workspace -- -D warnings
doc:
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
- name: Install sccache-cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].4
- name: cargo doc
run: cargo doc --no-deps --all-features --workspace
env:
Expand All @@ -77,7 +77,7 @@ jobs:
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: Install sccache-cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].4
- name: cargo install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: cargo hack
Expand All @@ -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/[email protected].3
uses: mozilla-actions/[email protected].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:
Expand All @@ -116,7 +116,7 @@ jobs:
with:
toolchain: ${{ matrix.msrv }}
- name: Install sccache-cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].4
- name: cargo +${{ matrix.msrv }} check
run: cargo check --all-features --workspace
# Run semver-check on release branch push or PR
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: Install sccache-cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].4
- name: Run test
run: |
cargo test --package astarte-device-sdk --test e2etest -- run_e2etest --exact --nocapture --ignored
10 changes: 5 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
- name: Install sccache-cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].4
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
Expand All @@ -63,10 +63,10 @@ jobs:
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: Install sccache-cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].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 || '');
Expand All @@ -90,7 +90,7 @@ jobs:
with:
components: llvm-tools-preview
- name: Install sccache-cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].4
- name: cargo install cargo-tarpaulin
uses: taiki-e/install-action@cargo-tarpaulin
- name: cargo generate-lockfile
Expand All @@ -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

0 comments on commit bc3f193

Please sign in to comment.