Skip to content

Commit

Permalink
Add option to skip tests during release build. (erigontech#13855)
Browse files Browse the repository at this point in the history
  • Loading branch information
lystopad authored Feb 18, 2025
1 parent 0afe752 commit 84c4b3d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Release
run-name: Build release ${{ inputs.release_version}} from branch ${{ inputs.checkout_ref }} by @${{ github.actor }}
run-name: Build release ${{ inputs.release_version}} from branch ${{ inputs.checkout_ref }}, Skip tests=${{ inputs.skip_tests }}

env:
APPLICATION: "erigon"
Expand Down Expand Up @@ -37,6 +37,11 @@ on:
type: boolean
default: false
description: 'publish_latest_tag: when set then docker image with tag :latest will be also published'
skip_tests:
required: false
type: boolean
default: false
description: 'Skip tests during release build (not recommended)'

jobs:

Expand Down Expand Up @@ -199,6 +204,7 @@ jobs:

test-release:
name: test on ${{ matrix.id }}
if: ${{ ! inputs.skip_tests }}
runs-on: [ self-hosted, Release, "${{ matrix.runner-arch }}" ]
timeout-minutes: 7200 # 5 days
needs: [ build-release ]
Expand Down Expand Up @@ -425,8 +431,8 @@ jobs:
In-case-of-failure:
name: "In case of failure: remove remote git tag pointing to the new version."
needs: [ publish-release, build-release, test-release ]
if: always() && !contains(needs.build-release.result, 'success')
needs: [ publish-release, build-release, test-release, build-debian-pkg, publish-docker-image ]
if: always() && !contains(needs.build-release.result, 'success') && contains(needs.test-release.result, 'failure') && !contains(needs.publish-release.result, 'success') && !contains(needs.build-debian-pkg.result, 'success') && !contains(needs.publish-docker-image.result, 'success')
runs-on: ubuntu-22.04

steps:
Expand Down

0 comments on commit 84c4b3d

Please sign in to comment.