From 8fe8f6c3b47a4e786a7c6cb31894be2e7a274a30 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 26 Aug 2022 17:40:59 +0200 Subject: [PATCH] ci: add job to check dist output from config --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ test/.goreleaser-dist.yml | 18 ++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 test/.goreleaser-dist.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 306bfa23..6a9751c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/test/.goreleaser-dist.yml b/test/.goreleaser-dist.yml new file mode 100644 index 00000000..aab1af94 --- /dev/null +++ b/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