-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (31 loc) · 827 Bytes
/
go.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
name: Go
on:
pull_request:
push:
branches: [master]
permissions:
contents: write
jobs:
verify:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Checkout
uses: actions/checkout@v4
- name: Lint
uses: golangci/golangci-lint-action@v6.1.0
with:
version: v1.60
- name: Test
run: go test -v ./...
env:
PATCH2PR_TEST_REPO: ${{ github.repository }}
PATCH2PR_TEST_GITHUB_TOKEN: ${{
(github.event_name == 'push' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'))
&& secrets.GITHUB_TOKEN
|| ''
}}