Skip to content

Commit d3b6dca

Browse files
authored
Merge pull request #30 from planetscale/gha/no-snapshot-on-main
2 parents acd7617 + 814b7ff commit d3b6dca

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,28 @@ jobs:
3737

3838
- run: make lint
3939
- run: make test
40+
41+
release-test:
42+
runs-on: ubuntu-latest
43+
# only run goreleaser snapshot on non-main branch
44+
if: github.ref != 'refs/heads/main'
45+
steps:
46+
- uses: actions/checkout@v3
47+
48+
- uses: actions/setup-go@v4
49+
with:
50+
go-version: "1.20"
51+
52+
- uses: golangci/golangci-lint-action@v3
53+
with:
54+
version: v1.52.2
55+
56+
# installed here to run lint on the .goreleaser.yml file:
57+
- name: Install GoReleaser
58+
uses: goreleaser/goreleaser-action@v4
59+
with:
60+
install-only: true
61+
4062
- run: make snapshot
4163

4264
release:

0 commit comments

Comments
 (0)