Skip to content

Commit 94f5f40

Browse files
author
daniel.eades
committed
rebase and update
1 parent 72d84c8 commit 94f5f40

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
@@ -75,10 +75,29 @@ jobs:
7575

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

0 commit comments

Comments
 (0)