Skip to content

Add github golang lint CI pipeline #6

Add github golang lint CI pipeline

Add github golang lint CI pipeline #6

Workflow file for this run

name: Golang ci
on:
# don't build any branch other than master (and prs) when git pushed
pull_request: {}
push:
branches:
- master
- "/^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/"
permissions:
contents: read
pull-requests: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
only-new-issues: true