Skip to content

Commit

Permalink
feat(workflows/publish): golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneM committed Sep 15, 2023
1 parent 9e342bd commit 8f622fc
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,25 @@ name: Test and Release Go CLI

on: [push]

permissions:
contents: read
# allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read

jobs:
linter:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
check-latest: true
- uses: golangci/golangci-lint-action@v3
with:
only-new-issues: false

tests:
name: Unit Tests
runs-on: ubuntu-latest
Expand All @@ -16,7 +34,7 @@ jobs:
run: go test -race ./...

releases:
needs: tests
needs: [linter, tests]
name: GoReleaser Build on All OS but Windows
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8f622fc

Please sign in to comment.