Fix condition for skip match #38
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: "go" | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| pull_request: | |
| branches: | |
| - "master" | |
| jobs: | |
| quality-check: | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: "actions/checkout@v4" | |
| - uses: "actions/setup-go@v4" | |
| with: | |
| go-version: "1.25" | |
| - uses: "actions/cache@v3" | |
| with: | |
| path: "~/.cache/go-build" | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - run: | | |
| go install honnef.co/go/tools/cmd/staticcheck@latest | |
| go install golang.org/x/tools/cmd/goimports@latest | |
| go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | |
| - run: "go vet ./..." | |
| - run: "staticcheck ./..." | |
| - run: "golangci-lint run ./..." | |
| - run: | | |
| diff=$(goimports -d .) | |
| if [ -n "$diff" ]; then | |
| echo "$diff" | |
| exit 1 | |
| fi |