Skip to content

Add golangci-lint

Add golangci-lint #1

Workflow file for this run

name: Lint
on:
push:
branches: [main]
paths-ignore:
- "docs/**"
- "tests/**"
- "scripts/**"
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
permissions:
contents: read
env:
GO_VERSION: 1.20
jobs:
linter:
name: golangci-lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: ${{ env.GO_VERSION }}

Check failure on line 25 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / Lint

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 25, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GO_VERSION .github/workflows/lint.yml (Line: 25, Col: 21): Unexpected value '${{ env.GO_VERSION }}'
os: [ubuntu-latest]
env:
CGO_ENABLED: 0
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v6
with:
args: --timeout=5m