Skip to content

Test CI go/toolchain version #226

Test CI go/toolchain version

Test CI go/toolchain version #226

Workflow file for this run

name: Lint
on:
push:
branches:
- main
- release/**
- feat/**
pull_request:
permissions:
contents: read
jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
env:
# ensure actions/checkouts uses the version from the go directive and not from the toolchain directive.
GOTOOLCHAIN=local

Check failure on line 22 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: 22, Col: 11): Unexpected value 'GOTOOLCHAIN=local'
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/*.go
go.mod
go.sum
**/go.mod
**/go.sum
- name: run linting
if: env.GIT_DIFF
run: |
make lint