-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 861 Bytes
/
Copy pathlint.yml
File metadata and controls
39 lines (31 loc) · 861 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
name: lint
on:
push:
branches: [ "main", "master" ]
pull_request:
permissions:
contents: read
pull-requests: read
statuses: write
jobs:
golangci:
name: Run golangci-lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Run golangci-lint (root)
run: $(go env GOPATH)/bin/golangci-lint run ./...
- name: Generate integration client
run: make integration-gen
- name: Run golangci-lint (integration)
run: |
cd integration
$(go env GOPATH)/bin/golangci-lint run ./...