Skip to content

Commit

Permalink
create lint.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kechigon committed Oct 2, 2024
1 parent e285c35 commit 1035488
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint

on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.2

- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0
- name: Run golangci-lint
run: |
golangci-lint run ./...

0 comments on commit 1035488

Please sign in to comment.