Skip to content

Merge pull request #200 from istio-ecosystem/dependabot/go_modules/gi… #206

Merge pull request #200 from istio-ecosystem/dependabot/go_modules/gi…

Merge pull request #200 from istio-ecosystem/dependabot/go_modules/gi… #206

Workflow file for this run

name: Lint
on:
push:
branches: [ "main" ]
pull_request:
paths:
- '**.go'
- 'go.mod'
- 'go.sum'
- '.github/workflows/lint.yml' # for testing changes to the workflow
permissions:
contents: read
# Cancel in-progress runs when a new workflow with the same group name is triggered
# see: https://www.meziantou.net/how-to-cancel-github-workflows-when-pushing-new-commits-on-a-branch.htm
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Run linter
runs-on: ubuntu-latest
steps:
- name: Clone the code
uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.10.1