Skip to content

Commit

Permalink
feat: Add pre-release checks before running GoReleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
mattevans committed Dec 19, 2024
1 parent 8dee1ae commit dfbe511
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@ permissions:
contents: write

jobs:
pre-release-checks:
runs-on: ubuntu-latest
steps:
- name: Go Tests
uses: ./.github/workflows/go-test.yml

- name: Shell Tests
uses: ./.github/workflows/shell-test.yml

- name: Linting
uses: ./.github/workflows/golangci-lint.yml

goreleaser:
needs: pre-release-checks
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -20,7 +33,7 @@ jobs:
- name: Set up Go
uses: ./.github/workflows/go-setup

- name: Run GoReleaser
- name: Release
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
Expand Down

0 comments on commit dfbe511

Please sign in to comment.