fix(test): make sure tests aren't impacted by user config #173
Workflow file for this run
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
| # Go Linters - GitHub Actions | |
| name: linters | |
| on: [push, pull_request] | |
| jobs: | |
| # Check linters on latest-ubuntu with default version of Go. | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: "1.23" | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Install golangci-lint | |
| run: | | |
| go version | |
| curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.6 | |
| - name: Install mockgen | |
| run: | | |
| go install go.uber.org/mock/mockgen@v0.6.0 | |
| - name: Run required linters in .golangci.yml plus hard-coded ones here | |
| run: make lint |