Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Status Check for branch protection #1756

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions .github/workflows/PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
branches:
- ubuntu-20.04-upgrade
- feature/did-indy*
paths:
- '**.py'
- '.github/**'
- 'build-scripts/**'
- 'bump_version.sh'
workflow_dispatch:

jobs:
Expand All @@ -25,15 +20,28 @@ jobs:
GITHUB_REPOSITORY_NAME: ${{ steps.setup.outputs.GITHUB_REPOSITORY_NAME }}
distribution: ${{ steps.setup.outputs.distribution }}
publish: ${{ steps.setup.outputs.publish }}
testsNeeded: ${{ steps.testsNeeded.outputs.testsNeeded }}
steps:
- name: checkout source code
uses: actions/checkout@v2
- name: setup
id: setup
uses: hyperledger/indy-shared-gha/.github/actions/workflow-setup@v1
- name: testsNeeded
id: testsNeeded
uses: dorny/paths-filter@v2
with:
filters: |
testsNeeded:
- '**.py'
- '.github/**'
- 'build-scripts/**'
- 'bump_version.sh'

lint:
name: Lint
needs: [workflow-setup]
if: ${{ needs.workflow-setup.outputs.testsNeeded == 'true' }}
uses: hyperledger/indy-shared-gha/.github/workflows/lint.yaml@v1

build-image:
Expand Down Expand Up @@ -63,3 +71,11 @@ jobs:
isDev: true
isRC: false
moduleName: indy_node

statusCheck:
name: statusCheck
runs-on: ubuntu-latest
needs: [workflow-setup, build_packages]
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)." '
7 changes: 7 additions & 0 deletions .github/workflows/releasepr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,10 @@ jobs:
isDev: 'false'
isRC: '${{ needs.release-infos.outputs.isPreRelease }}'
moduleName: indy_node

statusCheck:
pSchlarb marked this conversation as resolved.
Show resolved Hide resolved
name: statusCheck
runs-on: ubuntu-latest
needs: [workflow-setup, build_packages]
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)." '