Skip to content

Add linter

Add linter #3

Workflow file for this run

# Write me a workflow that will lint the code with golangci-lint
name: lint
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: true
- name: Download Go modules
run: go mod download
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=5m
skip-pkg-cache: false
skip-build-cache: false