ci: test anchors

This commit is contained in:
CrazyMax 2023-05-07 18:02:26 +02:00
parent 62695223a6
commit 5bc1f9fdbc
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 43 additions and 0 deletions

View File

@ -200,3 +200,23 @@ jobs:
name: Check dist name: Check dist
run: | run: |
tree -nh ./test/_output tree -nh ./test/_output
anchors:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.18
-
name: GoReleaser
uses: ./
with:
args: release --config .goreleaser-anchors.yml --skip-publish --clean --snapshot
workdir: ./test

View File

@ -0,0 +1,23 @@
&shared:
build: &build_base
env:
- CGO_ENABLED=0
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds:
- <<: *build_base
archives:
-
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'