-
Notifications
You must be signed in to change notification settings - Fork 951
45 lines (36 loc) · 998 Bytes
/
govmomi-go-lint.yaml
File metadata and controls
45 lines (36 loc) · 998 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
42
43
44
45
name: Code Style
permissions:
contents: read
on:
push:
branches: main
pull_request:
branches: main
jobs:
lint:
name: Lint Files
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
id: go
- name: Go Lint
run: make lint
header:
name: Header Check
runs-on: ubuntu-latest
steps:
- name: Check Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: go.mod
id: go
- name: Run Header Check
run: go run hack/header/main.go -config="hack/header/config.json"