Skip to content

Extend GitHub Action #3

Extend GitHub Action

Extend GitHub Action #3

Workflow file for this run

# Original: https://github.com/golangci/golangci-lint/blob/master/.github/workflows/pr.yml
name: Lint
on:
push:
branches:
- main
pull_request:
env:
GO_VERSION: '1.22'
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: lint
uses: golangci/[email protected]
with:
version: latest