Skip to content
23 changes: 23 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
build:
name: ${{ matrix.component.name }} Image Build
needs: [prepare]
if: needs.prepare.outputs.components != '' && needs.prepare.outputs.components != 'null' && needs.prepare.outputs.components != '[]'
runs-on: ubuntu-22.04
permissions:
contents: read
Expand Down Expand Up @@ -147,3 +148,25 @@ jobs:
package-type: 'container'
package-version-ids: ${{ steps.get-ids-for-delete.outputs.ids-for-delete }}
if: ${{ steps.get-ids-for-delete.outputs.ids-for-delete != '' }}
services-build-status:
name: "Services Build Status"
runs-on: ubuntu-latest
needs: [prepare, build]
if: always()
steps:
- name: Check build status
run: |
if [[ "${{ needs.prepare.result }}" == "failure" || "${{ needs.prepare.result }}" == "cancelled" ]]; then
echo "Prepare job failed or was cancelled"
exit 1
fi
if [[ "${{ needs.build.result }}" == "failure" || "${{ needs.build.result }}" == "cancelled" ]]; then
echo "Build job failed or was cancelled"
exit 1
fi
if [[ "${{ needs.build.result }}" == "skipped" ]]; then
echo "Build job was skipped - this is OK"
exit 0
fi
echo "All builds completed successfully!"
exit 0
11 changes: 6 additions & 5 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ permissions:
actions: read

on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
push
# pull_request:
# types: [opened, synchronize, reopened]
# branches: [main]

jobs:
Wait-for-images:
Expand All @@ -28,11 +29,11 @@ jobs:
Pgskipper-Pipeline:
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.user.login != 'dependabot[bot]' }}
needs: Wait-for-images
uses: Netcracker/qubership-test-pipelines/.github/workflows/pgskipper.yaml@3e4193378da5730d7b96d3a625d22a158d5e8372 #v1.12.0
uses: Netcracker/qubership-test-pipelines/.github/workflows/pgskipper.yaml@refactor/update_pipelines #v1.12.0
with:
repository_name: ${{ github.repository }}
service_branch: '${{ github.head_ref || github.ref_name }}'
pipeline_branch: '3e4193378da5730d7b96d3a625d22a158d5e8372' #this value must match the value after '@' in 'uses'
pipeline_branch: 'refactor/update_pipelines' #this value must match the value after '@' in 'uses'
secrets:
AWS_S3_ACCESS_KEY_ID: ${{secrets.AWS_S3_ACCESS_KEY_ID}}
AWS_S3_ACCESS_KEY_SECRET: ${{secrets.AWS_S3_ACCESS_KEY_SECRET}}
Expand Down
Loading