-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows: split release into pre-release-ci and release (man…
…ual) (#164) Previously, we run the release workflow automatically whenever a v* tag gets pushed. The existing workflow does not work because the tests can be flaky. When that happens, there's no way to release a new TF version since goreleaser will only run once all the acceptance tests pass. Until the flakiness goes away, we will split the release workflow into two: pre-release-ci (that runs automatically like before), and release (which has to be triggered manually after all the acceptance tests are triaged).
- Loading branch information
1 parent
ccb3d8f
commit 4c6f096
Showing
2 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: pre-release-ci | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
jobs: | ||
acceptance-test: | ||
name: acceptance-test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: Tests | ||
run: make testacc | ||
env: | ||
COCKROACH_API_KEY: ${{ secrets.COCKROACH_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters