fix: make 128 no packages found not return an error #200
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.21.3" | |
| - name: Install dependencies | |
| run: go get . | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: v1.60 | |
| - name: Format check | |
| run: test -z "$(go fmt)" | |
| - name: Test | |
| run: go test ./... | |
| lint-commit: | |
| runs-on: ubuntu-latest | |
| name: "Lint commit message" | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - name: Install commitizen | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install commitizen | |
| - name: Check commit message | |
| run: cz check --rev-range HEAD |