ci(lint): setup golangci-lint

Release-As: 0.0.4
This commit is contained in:
2023-12-16 02:26:53 +00:00
parent 597779d04f
commit 2ac3ecb555
5 changed files with 120 additions and 13 deletions

View File

@@ -17,6 +17,21 @@ jobs:
run: |
./bin/macos-battery-exporter -v
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55
env:
VERBOSE: "true"
release-please:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
@@ -35,7 +50,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Run GoReleaser