Add golangci-lint Github Action

This commit is contained in:
Ian Molee 2024-04-08 18:12:33 -07:00
parent 4f4c3f152a
commit 6d683b7406
1 changed files with 24 additions and 0 deletions

24
.github/workflows/golangci-lint.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: golangci-lint
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest