Release for v2.1.1 (#533) #1254
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: ci | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'README.md' | |
| tags-ignore: | |
| - 'v[0-9]+.[0-9]+.[0-9]+' | |
| branches: | |
| - '*' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| id: go | |
| - name: Cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Unshallow | |
| run: git fetch --prune --unshallow --tags | |
| - name: build | |
| run: make build | |
| - name: test | |
| run: make test_view | |
| - name: Archive code coverage results | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: code-coverage-report | |
| path: cover.html | |
| reviewdog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: lint | |
| uses: reviewdog/action-golangci-lint@v2 | |
| with: | |
| go_version_file: go.mod | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| reporter: github-check | |
| level: error | |
| filter_mode: nofilter | |
| golangci_lint_flags: '--config=.golangci.yml' | |
| fail_level: error |