Skip to content

Merge pull request #226 from mkmik/dependabot/go_modules/golang.org/x… #950

Merge pull request #226 from mkmik/dependabot/go_modules/golang.org/x…

Merge pull request #226 from mkmik/dependabot/go_modules/golang.org/x… #950

Workflow file for this run

name: Go
on:
push:
branches: [main]
tags: "v*"
pull_request:
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: "1.21"
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Build
run: go test -v ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}