From d5c0cfac1a3a6383015798e392a98757fead18a1 Mon Sep 17 00:00:00 2001 From: Jacob Magnusson Date: Thu, 13 Jun 2024 14:59:55 +0200 Subject: [PATCH 1/2] ci: Upgrade to compatible dependencies every night --- .github/workflows/upgrade-dependencies.yml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/upgrade-dependencies.yml diff --git a/.github/workflows/upgrade-dependencies.yml b/.github/workflows/upgrade-dependencies.yml new file mode 100644 index 00000000..a3bb6777 --- /dev/null +++ b/.github/workflows/upgrade-dependencies.yml @@ -0,0 +1,26 @@ +name: Upgrade dependencies + +on: + workflow_dispatch: {} + schedule: + - cron: 0 2 * * * + +jobs: + upgrade-dependencies: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo install cargo-edit + - uses: Swatinem/rust-cache@v2 + - run: cargo upgrade + - run: cargo test + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + commit-message: "fix: Upgrade dependencies" + title: "Upgrade dependencies to their latest compatible version" + body: | + Upgrade to compatible dependencies. This was automatically done using cargo-edit. + ``` + branch: create-pull-request/upgrade-dependencies From d639d6b6aaa56f7f868527ef605bd4a3a81bf4f9 Mon Sep 17 00:00:00 2001 From: Jacob Magnusson Date: Thu, 13 Jun 2024 15:10:16 +0200 Subject: [PATCH 2/2] ci: Update old action versions --- .github/workflows/ci.yaml | 46 ++++++++++----------------------------- 1 file changed, 12 insertions(+), 34 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cfafe20e..0369fc63 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,47 +7,25 @@ jobs: name: Test Suite runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: Swatinem/rust-cache@v1 - - uses: actions-rs/cargo@v1 - with: - command: test - args: --all + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - run: cargo test fmt: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - run: cargo fmt --all -- --check clippy: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - run: rustup component add clippy - - uses: Swatinem/rust-cache@v1 - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - run: cargo clippy -- -D warnings