lbcd/.github/workflows/golangci-lint.yml
Ben van Hartingsveldt ead4e4d6e8
Fix GoLang CI
2025-08-29 17:04:16 +02:00

38 lines
No EOL
754 B
YAML

name: golangci-lint
env:
# go needs absolute directories, using the $HOME variable doesn't work here.
GOCACHE: /home/runner/work/go/pkg/build
GOPATH: /home/runner/work/go
GO_VERSION: '^1.19'
on:
push:
tags:
- v*
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: setup go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5
with:
go-version: '${{ env.GO_VERSION }}'
- name: checkout source
uses: actions/checkout@v5
- name: compile code
run: go install -v ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: latest