Skip to content

Commit dce2a7f

Browse files
committed
ci: test on oldstable and stable go versions, automerge dependabot
1 parent 4e8b6b2 commit dce2a7f

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ jobs:
66
test:
77
strategy:
88
matrix:
9-
go-version: ['1.23', '1.24']
9+
go-version: [stable, oldstable]
1010
os: [ubuntu-latest, macos-latest, windows-latest]
1111
runs-on: ${{ matrix.os }}
12-
env:
13-
GO111MODULE: "on"
1412
steps:
1513
- name: Install Go
1614
uses: actions/setup-go@v5
@@ -28,3 +26,22 @@ jobs:
2826

2927
- name: Test
3028
run: go test ./...
29+
30+
dependabot:
31+
needs: [test]
32+
runs-on: ubuntu-latest
33+
permissions:
34+
pull-requests: write
35+
contents: write
36+
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
37+
steps:
38+
- id: metadata
39+
uses: dependabot/fetch-metadata@v2
40+
with:
41+
github-token: "${{ secrets.GITHUB_TOKEN }}"
42+
- run: |
43+
gh pr review --approve "$PR_URL"
44+
gh pr merge --squash --auto "$PR_URL"
45+
env:
46+
PR_URL: ${{github.event.pull_request.html_url}}
47+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)