Skip to content

Refactor config handling and improve timeout settings #266

Refactor config handling and improve timeout settings

Refactor config handling and improve timeout settings #266

Workflow file for this run

name: golangci-lint
on:
pull_request:
push:
branches: [main, master, dev]
paths:
- "cookiefarm/**"
- ".github/workflows/golangci-lint.yml"
env:
GO_VERSION: 1.26.0
GOLANGCI_LINT_VERSION: v2.11.4
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: cookiefarm/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('cookiefarm/**/go.sum') }}-lint
restore-keys: |
${{ runner.os }}-go-
- name: Sync workspace
working-directory: ./cookiefarm
run: go work sync
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
working-directory: cookiefarm
args: $(go list -f '{{.Dir}}' -m) --verbose