fix(deps): update golang.org/x/exp digest to 7588d65 #118
Workflow file for this run
This file contains 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: Build and Release | |
on: | |
pull_request: | |
branches: | |
- main | |
- master | |
types: | |
- opened | |
- synchronize | |
paths: | |
- .github/workflows/build-release.yml | |
pull_request_target: | |
branches: | |
- main | |
- master | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- closed | |
merge_group: | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π₯ Check out the repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.merged == true && github.base_ref || github.event.pull_request.head.sha }} | |
- name: π·οΈ Bump version and push tag | |
id: tag-version | |
uses: mathieudutour/github-tag-action@v6.2 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
default_bump: "minor" | |
custom_release_rules: "feat:minor:β¨ Features,fix:patch:π Fixes,docs:patch:π° Docs,chore:patch:π¨ Chore,pref:patch:π Performance improvements,refactor:patch:π§Ή Refactoring,build:patch:π Build,ci:patch:π CI,revert:patch:βͺ Revert,style:patch:π§Ή Style,test:patch:π Test,release:major:π¦ Release" | |
dry_run: ${{ github.event.pull_request.merged == true && 'false' || 'true' }} | |
- name: π·οΈ Fetch tags | |
run: git fetch --tags | |
- name: π οΈ Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
- name: π¦ Install dependencies | |
run: go mod download | |
- name: π§ͺ Test | |
run: go test -v ./... | |
- name: π GoReleaser | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
args: release --clean ${{ github.event.pull_request.merged == false && '--skip=validate,publish --snapshot' || '' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: π¦ Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
- name: π§Ή Check formatting | |
run: | | |
go fmt ./... | |
git diff --exit-code |