Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4c843ac

Browse files
author
daniel.eades
committedJan 31, 2025
rebase and update
1 parent a02bcac commit 4c843ac

File tree

4 files changed

+1014
-489
lines changed

4 files changed

+1014
-489
lines changed
 

‎.github/dependabot.yml

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,42 @@
11
version: 2
22
updates:
3-
- package-ecosystem: cargo
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
- package-ecosystem: github-actions
8-
directory: "/"
9-
schedule:
10-
interval: daily
11-
ignore:
12-
- dependency-name: dtolnay/rust-toolchain
3+
# bump major and minor updates as soon as available
4+
- package-ecosystem: cargo
5+
target-branch: main # see https://github.com/dependabot/dependabot-core/issues/1778#issuecomment-1988140219
6+
directory: /
7+
schedule:
8+
interval: daily
9+
commit-message:
10+
prefix: chore
11+
include: scope
12+
ignore:
13+
- dependency-name: "*"
14+
update-types:
15+
- "version-update:semver-patch"
16+
17+
# bundle patch updates together on a monthly basis
18+
- package-ecosystem: cargo
19+
directory: /
20+
schedule:
21+
interval: monthly
22+
commit-message:
23+
prefix: chore
24+
include: scope
25+
groups:
26+
patch-updates:
27+
update-types:
28+
- patch
29+
ignore:
30+
- dependency-name: "*"
31+
update-types:
32+
- "version-update:semver-minor"
33+
- "version-update:semver-major"
34+
35+
# bump actions as soon as available
36+
- package-ecosystem: github-actions
37+
directory: /
38+
schedule:
39+
interval: daily
40+
commit-message:
41+
prefix: chore
42+
include: scope

‎.github/workflows/ci.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,29 @@ jobs:
7979

8080
msrv:
8181
runs-on: ubuntu-latest
82-
env:
83-
CARGO_NET_GIT_FETCH_WITH_CLI: true
8482
steps:
85-
- uses: actions/checkout@v4
83+
- uses: actions/checkout@master
84+
- name: Get MSRV from Cargo.toml
85+
run: |
86+
MSRV=$(grep 'rust-version' Cargo.toml | sed 's/.*= *"\(.*\)".*/\1/')
87+
echo "MSRV=$MSRV" >> $GITHUB_ENV
88+
- uses: dtolnay/rust-toolchain@master
89+
with:
90+
toolchain: ${{ env.MSRV }}
8691
- uses: taiki-e/install-action@cargo-no-dev-deps
87-
- uses: dtolnay/rust-toolchain@1.64.0 # also set in Cargo.toml
88-
- run: cargo no-dev-deps check -p graphql_client
92+
- run: cargo no-dev-deps check --all
93+
94+
# Automatically merge if it's a Dependabot PR that passes the build
95+
dependabot:
96+
needs: [test, wasm_build, lint, prettier, msrv]
97+
permissions:
98+
contents: write
99+
pull-requests: write
100+
runs-on: ubuntu-latest
101+
if: github.actor == 'dependabot[bot]'
102+
steps:
103+
- name: Enable auto-merge for Dependabot PRs
104+
run: gh pr merge --auto --merge "$PR_URL"
105+
env:
106+
PR_URL: ${{github.event.pull_request.html_url}}
107+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

‎Cargo.lock

Lines changed: 949 additions & 473 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ members = [
1212
]
1313

1414
[workspace.package]
15-
rust-version = "1.64.0" # also set in CI
15+
rust-version = "1.64.0"

0 commit comments

Comments
 (0)
Please sign in to comment.