-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (44 loc) · 1.15 KB
/
dependabot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Dependabot
on:
pull_request_target:
jobs:
test:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: stable
- name: Test Code
run: |
go build -v ./...
go test -v -race ./...
cd converter
go mod tidy
go build -v ./...
merge:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
needs: test
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
- uses: nick-invision/retry@v2
with:
timeout_minutes: 60
max_attempts: 5
retry_wait_seconds: 60
retry_on: error
command: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}