Skip to content

Commit

Permalink
ci(lint): add goreleaser-config job to check goreleaser configuration
Browse files Browse the repository at this point in the history
This should prevent us from running into issues while trying to cut a
release cause something is outdated/wrong in the goreleaser config.
  • Loading branch information
jimehk committed Jul 3, 2024
1 parent 65d381d commit dbeabd4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,28 @@ 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

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 }}
Expand Down

0 comments on commit dbeabd4

Please sign in to comment.