ci: test anchors
This commit is contained in:
parent
62695223a6
commit
5bc1f9fdbc
|
@ -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
|
||||||
|
|
|
@ -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'
|
Loading…
Reference in New Issue