Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/go-lint-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ on:
type: string
required: false
default: "lint-config"
cache:
type: boolean
required: false
default: false

jobs:
lint:
Expand Down Expand Up @@ -76,21 +80,21 @@ jobs:
uses: actions/setup-go@v6
with:
go-version: ${{ inputs.go-version }}
cache: false
cache: ${{ inputs.cache }}

- name: Setup Go (provided only go-version-file input)
if: "${{ inputs.go-version == '' && inputs.go-version-file != '' }}"
uses: actions/setup-go@v6
with:
go-version-file: ${{ inputs.go-version-file }}
cache: false
cache: ${{ inputs.cache }}

- name: Setup Go (provided neither go-version-file nor go-version input)
if: "${{ inputs.go-version == '' && inputs.go-version-file == '' }}"
uses: actions/setup-go@v6
with:
go-version: "stable"
cache: false
cache: ${{ inputs.cache }}

- name: golangci-lint
id: runlint
Expand Down