Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: Go Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest