From 3fd8d4f7d3b3c3a825ce396b4778ede2f20bc6c7 Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Wed, 15 Mar 2023 11:11:29 -0400 Subject: [PATCH 1/3] CI: configure Dependabot for GitHub actions/crates. This commit adds Dependabot support to the rustls-native-certs crate to match usage in the other rustls repositories. Dependabot will monitor both Cargo dependencies and GitHub action workflow dependencies. --- .github/dependabot.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..397bdaa --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: +- package-ecosystem: cargo + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 +- package-ecosystem: github-actions + directory: "/" + schedule: + interval: weekly + open-pull-requests-limit: 10 From 70039f7bf23542efa8ffec6b38e00d2f126cc746 Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Wed, 15 Mar 2023 11:12:42 -0400 Subject: [PATCH 2/3] CI: actions/checkout@v2 -> v3. --- .github/workflows/rust.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3cad442..556b663 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -27,7 +27,7 @@ jobs: rust: stable steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false @@ -68,7 +68,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 @@ -89,7 +89,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 8929acbc11e5890937221ac316b71f546d16a092 Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Wed, 15 Mar 2023 11:14:11 -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/rust.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 556b663..7934079 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.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 build (debug; default features) run: cargo build @@ -72,17 +71,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 @@ -93,13 +86,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