From 3319280c4d92399075ff2a6012f6eb1ed6020e8c Mon Sep 17 00:00:00 2001 From: Aneesh Puttur Date: Thu, 6 Feb 2025 14:59:32 -0500 Subject: [PATCH] Update linter.yml --- .github/workflows/linter.yml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 3f56bde0..7882c88b 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,22 +1,29 @@ -name: Linter +name: golangci-lint on: push: - branches: [ "main" ] + branches: + - main pull_request: - branches: [ "main" ] + branches: + - main jobs: - - build: + lint: + name: Run GolangCI-Lint runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.23' + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: 1.23 # Change this to match your Go version - - name: lint - run: make lint + - name: Run GolangCI-Lint + uses: golangci/golangci-lint-action@v4 + with: + version: latest # You can specify a specific version like v1.54.2 + args: --timeout=5m