-
Notifications
You must be signed in to change notification settings - Fork 188
41 lines (38 loc) · 881 Bytes
/
go-lint.yml
File metadata and controls
41 lines (38 loc) · 881 Bytes
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
name: Go code linters
permissions:
contents: read
# Cancel workflow if there is a new change to the branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
on:
workflow_dispatch:
merge_group:
pull_request:
branches:
- main
paths:
- ".github/workflows/go-lint.yml"
- "Makefile"
- "go.work"
- "f3-sidecar/**"
- "interop-tests/src/tests/**"
push:
branches:
- main
paths:
- ".github/workflows/go-lint.yml"
- "Makefile"
- "go.work"
- "f3-sidecar/**"
- "interop-tests/src/tests/**"
jobs:
lint-go:
name: Go lint checks
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.work"
- run: make lint-go