Skip to content

Commit

Permalink
Merge pull request #30 from planetscale/gha/no-snapshot-on-main
Browse files Browse the repository at this point in the history
  • Loading branch information
joemiller authored Jul 26, 2023
2 parents acd7617 + 814b7ff commit d3b6dca
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,28 @@ jobs:

- run: make lint
- run: make test

release-test:
runs-on: ubuntu-latest
# only run goreleaser snapshot on non-main branch
if: github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version: "1.20"

- uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2

# installed here to run lint on the .goreleaser.yml file:
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
install-only: true

- run: make snapshot

release:
Expand Down

0 comments on commit d3b6dca

Please sign in to comment.