Skip to content

Merge pull request #7 from sysulq/dependabot/go_modules/github.com/go… #4

Merge pull request #7 from sysulq/dependabot/go_modules/github.com/go…

Merge pull request #7 from sysulq/dependabot/go_modules/github.com/go… #4

Workflow file for this run

name: Go
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
go: ["1.21.x"]
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4.1.1
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}