-
Notifications
You must be signed in to change notification settings - Fork 68
48 lines (39 loc) · 1.45 KB
/
router-lint.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
name: VMware Event Router Linting
# triggered on every push and PRs but only when changes inside
# vmware-event-router (sub)dir(s)
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "vmware-event-router/**"
push:
paths:
- "vmware-event-router/**"
jobs:
golangci:
name: lint
strategy:
matrix:
go-version: ["1.19"]
platform: ["ubuntu-latest"]
runs-on: ${{ matrix.platform }}
timeout-minutes: 20
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{ matrix.go-version }}
cache: false # use golangci-lint caching
id: go
- name: golangci-lint
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: latest
# Optional: working directory, useful for monorepos
working-directory: vmware-event-router
# Optional: golangci-lint command line arguments.
args: --build-tags unit,integration -v --timeout 3m
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true