Skip to content

introduce goreleaser #21

introduce goreleaser

introduce goreleaser #21

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
go:
- "1"
- "1.21"
- "1.20"
- "1.19"
- "1.18"
- "1.17"
- "1.16"
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Test v1
run: make test
- name: Test v2
run: make test
working-directory: v2
goreleaser-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Check GoReleaser configure v1
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: check
workdir: v2