Skip to content

General Refactoring + Some fixies #6

General Refactoring + Some fixies

General Refactoring + Some fixies #6

Workflow file for this run

name: golangci-lint
on:
pull_request:
push:
branches: [main, master, dev]
env:
GO_VERSION: 1.26.0
GOLANGCI_LINT_VERSION: v2.10.1
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.work
- name: Cache Go modules + build cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
~/.cache/golangci-lint
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-lint
restore-keys: |
${{ runner.os }}-go-
- name: Sync workspace
run: go work sync
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: $(go list -f '{{.Dir}}' -m) --verbose