Skip to content

Commit

Permalink
changed ordering of pipeline tasks
Browse files Browse the repository at this point in the history
Signed-off-by: pSchlarb <[email protected]>
  • Loading branch information
pSchlarb committed Mar 2, 2023
1 parent 029a7ee commit 9ba9c9b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,9 @@ jobs:
DOCKER_IMAGE: ghcr.io/${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }}/plenum-build
UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}

plenum_tests:
name: Test Plenum
needs: [workflow-setup, lint, build-docker-image]
uses: ./.github/workflows/reuseable_test.yaml
with:
GITHUB_REPOSITORY_NAME: ${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }}
UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}

build_packages:
name: Build Packages
needs: [workflow-setup, plenum_tests]
needs: [workflow-setup, build-docker-image]
uses: hyperledger/indy-shared-gha/.github/workflows/buildpackages.yaml@v1
with:
DOCKER_IMAGE: ghcr.io/${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }}/plenum-build:${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}
Expand All @@ -74,10 +66,18 @@ jobs:
isRC: 'false'
moduleName: plenum

plenum_tests:
name: Test Plenum
needs: [workflow-setup, lint, build_packages]
uses: ./.github/workflows/reuseable_test.yaml
with:
GITHUB_REPOSITORY_NAME: ${{ needs.workflow-setup.outputs.GITHUB_REPOSITORY_NAME }}
UBUNTU_VERSION: ${{ needs.workflow-setup.outputs.UBUNTU_VERSION }}

statusCheck:
name: statusCheck
runs-on: ubuntu-latest
needs: [workflow-setup, build_packages]
needs: [workflow-setup, plenum_tests]
if: ${{ needs.workflow-setup.outputs.testsNeeded == 'false' || success() }}
steps:
- run: 'echo "Just a status Check (Always true, when executed) for branch protection rules(blocks merging while test are running and if tests fail)." '
22 changes: 11 additions & 11 deletions .github/workflows/releasepr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,9 @@ jobs:
DOCKER_IMAGE: ghcr.io/${{ needs.release-infos.outputs.GITHUB_REPOSITORY_NAME }}/plenum-build
UBUNTU_VERSION: ${{ needs.release-infos.outputs.UBUNTU_VERSION }}

plenum_tests:
name: Test Plenum
needs: [release-infos, lint, build-docker-image]
if: needs.release-infos.outputs.isVersionBump == 'true'
uses: ./.github/workflows/reuseable_test.yaml
with:
GITHUB_REPOSITORY_NAME: ${{ needs.release-infos.outputs.GITHUB_REPOSITORY_NAME }}
UBUNTU_VERSION: ${{ needs.release-infos.outputs.UBUNTU_VERSION }}

build_packages:
name: Build Packages
needs: [release-infos, plenum_tests]
needs: [release-infos, build-docker-image]
if: needs.release-infos.outputs.isVersionBump == 'true'
uses: hyperledger/indy-shared-gha/.github/workflows/buildpackages.yaml@v1
with:
Expand All @@ -70,9 +61,18 @@ jobs:
isRC: '${{ needs.release-infos.outputs.isPreRelease }}'
moduleName: plenum

plenum_tests:
name: Test Plenum
needs: [release-infos, lint, build_packages]
if: needs.release-infos.outputs.isVersionBump == 'true'
uses: ./.github/workflows/reuseable_test.yaml
with:
GITHUB_REPOSITORY_NAME: ${{ needs.release-infos.outputs.GITHUB_REPOSITORY_NAME }}
UBUNTU_VERSION: ${{ needs.release-infos.outputs.UBUNTU_VERSION }}

statusCheck:
name: statusCheck
runs-on: ubuntu-latest
needs: [build_packages]
needs: [plenum_tests]
steps:
- run: 'echo "Just a status Check (Always true, when executed) for branch protection rules(blocks merging while test are running and if tests fail)." '

0 comments on commit 9ba9c9b

Please sign in to comment.