Bump version 1.41.0 #1116
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
| name: Test and Release Go CLI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main, master, prod] | |
| tags: ["*"] | |
| # The list of permissions is explained on the GitHub doc: | |
| # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs | |
| permissions: | |
| # Write permissions is needed to create a new release | |
| contents: write | |
| # allow read access to pull request. Use with `only-new-issues` option. | |
| pull-requests: read | |
| jobs: | |
| linter: | |
| name: Linter on a PR | |
| if: ${{ github.event_name == 'pull_request' }} | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: Scalingo/actions/go-linter@main | |
| tests: | |
| name: Unit Tests | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: Scalingo/actions/go-tests@main | |
| releases: | |
| needs: [tests] | |
| name: GoReleaser Build on All OS but Windows | |
| if: ${{ github.ref_type == 'tag' }} | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # required by GoReleaser (https://goreleaser.com/ci/actions/#fetch-all-history) | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: "go.mod" | |
| check-latest: true | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| version: "~> v2" | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CGO_ENABLED: 0 | |
| releases-windows: | |
| needs: [tests] | |
| name: GoReleaser Build on Windows | |
| if: ${{ github.ref_type == 'tag' }} | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # required by GoReleaser (https://goreleaser.com/ci/actions/#fetch-all-history) | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: "go.mod" | |
| check-latest: true | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| version: "~> v2" | |
| args: release --config .goreleaser-windows.yaml --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |