From 77edd6a8b8e2217eaf1f6c8dab2c131ca50378f5 Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Tue, 14 Mar 2023 16:47:01 -0400 Subject: [PATCH 1/3] CI: configure Dependabot to monitor GitHub actions. This commit updates the existing `.github/dependabot.yml` config that monitors Cargo dependencies to also monitor GitHub actions (on a weekly cadence). --- .github/dependabot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5cde165..c7b634c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,7 @@ updates: schedule: interval: daily open-pull-requests-limit: 10 +- package-ecosystem: github-actions + directory: "/" + schedule: + interval: weekly From fa64fe3a5e35541dd70be1e6efd5cfc2cc53a023 Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Tue, 14 Mar 2023 16:47:55 -0400 Subject: [PATCH 2/3] CI: actions/checkout@v2 -> v3. --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37ced22..f6610a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: rust: stable steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -74,7 +74,7 @@ jobs: runs-on: ubuntu-18.04 steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -95,7 +95,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Install rust toolchain @@ -116,7 +116,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Install rust toolchain From bafd31b2cd760763c10a19549dd0f93486cdc606 Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Tue, 14 Mar 2023 16:50:43 -0400 Subject: [PATCH 3/3] CI: replace actions-rs w/ dtolnay/rust-toolchain. This commit replaces the `actions-rs/toolchain` action with `dtolnay/rust-toolchain`. The former is no longer maintained. Usages of `actions-rs/cargo` are replaced with direct invocation of the relevant tooling installed by `dtolnay/rust-toolchain`. --- .github/workflows/build.yml | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f6610a7..2c2b5a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,10 +32,9 @@ jobs: persist-credentials: false - name: Install ${{ matrix.rust }} toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - override: true - name: cargo check (default features) run: cargo check --all-targets @@ -79,11 +78,7 @@ jobs: persist-credentials: false - name: Install rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - default: true + uses: dtolnay/rust-toolchain@nightly - name: cargo doc (all features) run: cargo doc --all-features --no-deps @@ -99,17 +94,11 @@ jobs: with: persist-credentials: false - name: Install rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true - default: true components: rustfmt - name: Check formatting - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check clippy: name: Clippy @@ -120,13 +109,7 @@ jobs: with: persist-credentials: false - name: Install rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true - default: true components: clippy - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --all-features -- -D warnings + - run: cargo clippy --all-features -- --deny warnings