Skip to content

Commit

Permalink
ci: add job to check dist output from config
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Aug 26, 2022
1 parent ef54bd4 commit b9ea320
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -196,3 +196,27 @@ jobs:
workdir: ./test
env:
GORELEASER_CURRENT_TAG: v99.99.99

dist:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
-
name: GoReleaser
uses: ./
with:
args: release --config .goreleaser-dist.yml --skip-publish --rm-dist
workdir: ./test
-
name: Check dist
run: |
tree -nh ./test/_output
18 changes: 18 additions & 0 deletions test/.goreleaser-dist.yml
@@ -0,0 +1,18 @@
env:
- GO111MODULE=on

before:
hooks:
- go mod download

builds:
-
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64

dist: _output

0 comments on commit b9ea320

Please sign in to comment.