From f612890225dc800a3de368f642bf72e0449cf032 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 3 Jul 2024 10:08:47 +0100 Subject: [PATCH] ci(lint): add goreleaser-config job to check goreleaser configuration This should prevent us from running into issues while trying to cut a release cause something is outdated/wrong in the goreleaser config. --- .github/workflows/ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15085e9a..80e6748a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,10 +89,30 @@ jobs: - name: Ensure generated documentation is up to date run: mv docs docs-current && make docs && diff -rN docs-current docs + goreleaser-config: + name: Goreleaser Config + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + - name: goreleaser check + uses: goreleaser/goreleaser-action@v6 + with: + version: "~> v2" + args: check + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + release-please: name: Release Please runs-on: ubuntu-latest - needs: [lint, lint-provider, tidy, test, docs] + needs: [lint, lint-provider, tidy, test, docs, goreleaser-config] if: github.ref == 'refs/heads/main' outputs: release_created: ${{ steps.release-please.outputs.release_created }}