Skip to content

Commit

Permalink
Update linter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshkp authored Feb 6, 2025
1 parent f3b1d40 commit 3319280
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3319280

Please sign in to comment.