Skip to content

Merge pull request #103 from NETWAYS/dependabot/go_modules/github.com… #133

Merge pull request #103 from NETWAYS/dependabot/go_modules/github.com…

Merge pull request #103 from NETWAYS/dependabot/go_modules/github.com… #133

Workflow file for this run

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