Skip to content

Commit

Permalink
add lint github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PrathyushaLakkireddy committed Sep 17, 2024
1 parent 41322d0 commit 63bd01d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Lint
# Lint runs golangci-lint over the entire repository
# This workflow is run on every pull request and push to main
# The `golangci` will pass without running if no *.{go, mod, sum} files have been changed.

on:
pull_request:
push:
branches:
- main

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}-lint
cancel-in-progress: true

jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v3
with:
# Set to the desired Go version
go-version: "1.22"

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.1
args: --timeout 20m0s

0 comments on commit 63bd01d

Please sign in to comment.