Merge pull request #88 from VoidClancy/docs #109
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: lint | |
| on: | |
| push: | |
| branches: [ "main", "master" ] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| statuses: write | |
| jobs: | |
| golangci: | |
| name: Run golangci-lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| cache: true | |
| - name: Install golangci-lint | |
| run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | |
| - name: Run golangci-lint (root) | |
| run: $(go env GOPATH)/bin/golangci-lint run ./... | |
| - name: Generate integration client | |
| run: make integration-gen | |
| - name: Run golangci-lint (integration) | |
| run: | | |
| cd integration | |
| $(go env GOPATH)/bin/golangci-lint run ./... |