forked from celestiaorg/celestia-node
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(ci) mark flakey test suites as "continue-on-error: true" (celestiaor…
…g#2874) in the interest of having a full pipeline for release 0.12.0, have marked the swamp and unit w/ race tests to `continue-on-error: true` so though the job will still fail in ci, the pipeline and dependent steps after those tests (namely version_bump + goreleaser) will still proceed as though they were successful, and we can get signed binaries with the tagged release
- Loading branch information
Showing
2 changed files
with
17 additions
and
4 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 |
---|---|---|
|
@@ -32,10 +32,17 @@ jobs: | |
GO_VERSION: "1.21" | ||
outputs: | ||
go-version: ${{ steps.set-vars.outputs.go-version }} | ||
branch: ${{ steps.trim_ref.outputs.branch }} | ||
steps: | ||
- id: set-vars | ||
- name: Set go version | ||
id: set-vars | ||
run: echo "go-version=${{env.GO_VERSION}}" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Trim branch name | ||
id: trim_ref | ||
run: | | ||
echo "branch=$(${${{ github.ref }}:11})" >> $GITHUB_OUTPUT | ||
# Dockerfile Linting | ||
hadolint: | ||
uses: celestiaorg/.github/.github/workflows/[email protected] # yamllint disable-line rule:line-length | ||
|
@@ -74,6 +81,7 @@ jobs: | |
permissions: "write-all" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Bump version and push tag | ||
# Placing the if condition here is a workaround for needing to block | ||
# on this step during workflow dispatch events but the step not | ||
|
@@ -82,12 +90,10 @@ jobs: | |
# in goreleaser not running either. | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
uses: mathieudutour/[email protected] | ||
|
||
- name: Version Release | ||
uses: celestiaorg/.github/.github/actions/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
default_bump: ${{ inputs.version }} | ||
release_branches: ${{ needs.setup.outputs.branch }} | ||
|
||
# Generate the release with goreleaser to include pre-built binaries | ||
goreleaser: | ||
|
@@ -99,16 +105,20 @@ jobs: | |
permissions: "write-all" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: git fetch --force --tags | ||
|
||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ needs.setup.outputs.go-version }} | ||
|
||
- name: Import GPG key | ||
id: import_gpg | ||
uses: crazy-max/ghaction-import-gpg@v4 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_SIGNING_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
|
||
# Generate the binaries and release | ||
- uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
|
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