use the same release job for testing goreleaser
@@ -37,6 +37,13 @@ jobs:
with:
go-version: 1.16
+ # Test goreleaser if the tag is empty.
+ - uses: goreleaser/goreleaser-action@v2
+ if: "steps.tag.outputs.value == ''"
+ with:
+ version: latest
+ args: check
+
# Create release.
- uses: goreleaser/goreleaser-action@v2
if: "steps.tag.outputs.value != ''"
@@ -63,12 +70,3 @@ jobs:
- uses: actions/checkout@v2
- name: Post bumpr status comment
uses: haya14busa/action-bumpr@v1
-
- release-test:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: goreleaser/goreleaser-action@v2
- with:
- version: latest
- args: check
