Skip to content

Commit

Permalink
feat: add the Linter workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
h5law committed Jan 12, 2024
1 parent a9c5727 commit 9b4e1c5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Linter

on:
push:
branches: ["main"]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0" # Per https://github.com/ignite/cli/issues/1674#issuecomment-1144619147
- uses: actions/setup-go@v4
with:
go-version: "1.20.10"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54

0 comments on commit 9b4e1c5

Please sign in to comment.