Skip to content

Merge pull request #1077 from vmware-samples/dependabot/go_modules/ex… #135

Merge pull request #1077 from vmware-samples/dependabot/go_modules/ex…

Merge pull request #1077 from vmware-samples/dependabot/go_modules/ex… #135

Workflow file for this run

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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
with:
go-version: ${{ matrix.go-version }}
cache: false # use golangci-lint caching
id: go
- name: golangci-lint
uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299
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