Skip to content

Commit

Permalink
Merge pull request #91 from planetscale/joem/gha-fix-release-test-job
Browse files Browse the repository at this point in the history
ci(gha): fix test job in new release.yaml workflow
  • Loading branch information
joemiller authored Oct 30, 2024
2 parents c539933 + 63e7546 commit c43e9df
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,21 @@ on:
jobs:
test:
runs-on: ubuntu-latest
if: >
(github.event_name == 'push' && !contains(toJson(github.event.commits), '[ci skip]') && !contains(toJson(github.event.commits), '[skip ci]'))
|| github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version-file: go.mod

- uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6

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

- run: make lint
- run: make test

Expand Down

0 comments on commit c43e9df

Please sign in to comment.