Skip to content

Commit

Permalink
chore: Read golangci-lint version from Makefile as variable
Browse files Browse the repository at this point in the history
  • Loading branch information
irvinlim committed Jan 23, 2024
1 parent 75ae364 commit c08a313
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}
- id: get-golangci-lint-version
name: Get golangci-lint version
run: echo "GOLANGCI_LINT_VERSION=$(grep '^GOLANGCI_LINT_VERSION' Makefile | cut -d' ' -f3)" >> "$GITHUB_OUTPUT"
- name: Run golangci-lint
run: make lint
uses: golangci/golangci-lint-action@v2.5.2
with:
version: ${{ steps.get-golangci-lint-version.outputs.GOLANGCI_LINT_VERSION }}
args: --timeout=5m

generate-lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c08a313

Please sign in to comment.