fix: update conditional checks for integration and coverage jobs in CI pipeline
This commit is contained in:
22
.github/workflows/ci-pipeline.yml
vendored
22
.github/workflows/ci-pipeline.yml
vendored
@@ -288,7 +288,7 @@ jobs:
|
||||
name: Integration - Cerberus
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-image
|
||||
if: needs.build-image.result == 'success' && needs.build-image.outputs.push_image == 'true' && needs.build-image.outputs.image_ref_dockerhub != '' && inputs.run_integration != false
|
||||
if: needs.build-image.result == 'success' && needs.build-image.outputs.push_image == 'true' && needs.build-image.outputs.image_ref_dockerhub != '' && (github.event_name != 'workflow_dispatch' || inputs.run_integration != false)
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
|
||||
@@ -313,7 +313,7 @@ jobs:
|
||||
name: Integration - CrowdSec
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-image
|
||||
if: needs.build-image.result == 'success' && needs.build-image.outputs.push_image == 'true' && needs.build-image.outputs.image_ref_dockerhub != '' && inputs.run_integration != false
|
||||
if: needs.build-image.result == 'success' && needs.build-image.outputs.push_image == 'true' && needs.build-image.outputs.image_ref_dockerhub != '' && (github.event_name != 'workflow_dispatch' || inputs.run_integration != false)
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
|
||||
@@ -339,7 +339,7 @@ jobs:
|
||||
name: Integration - WAF
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-image
|
||||
if: needs.build-image.result == 'success' && needs.build-image.outputs.push_image == 'true' && needs.build-image.outputs.image_ref_dockerhub != '' && inputs.run_integration != false
|
||||
if: needs.build-image.result == 'success' && needs.build-image.outputs.push_image == 'true' && needs.build-image.outputs.image_ref_dockerhub != '' && (github.event_name != 'workflow_dispatch' || inputs.run_integration != false)
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
|
||||
@@ -364,7 +364,7 @@ jobs:
|
||||
name: Integration - Rate Limit
|
||||
runs-on: ubuntu-latest
|
||||
needs: build-image
|
||||
if: needs.build-image.result == 'success' && needs.build-image.outputs.push_image == 'true' && needs.build-image.outputs.image_ref_dockerhub != '' && inputs.run_integration != false
|
||||
if: needs.build-image.result == 'success' && needs.build-image.outputs.push_image == 'true' && needs.build-image.outputs.image_ref_dockerhub != '' && (github.event_name != 'workflow_dispatch' || inputs.run_integration != false)
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
|
||||
@@ -427,7 +427,7 @@ jobs:
|
||||
needs:
|
||||
- build-image
|
||||
- integration-gate
|
||||
if: inputs.run_e2e != false && needs.build-image.outputs.push_image == 'true'
|
||||
if: (github.event_name != 'workflow_dispatch' || inputs.run_e2e != false) && needs.build-image.outputs.push_image == 'true'
|
||||
uses: ./.github/workflows/e2e-tests-split.yml
|
||||
with:
|
||||
browser: all
|
||||
@@ -443,7 +443,7 @@ jobs:
|
||||
needs:
|
||||
- build-image
|
||||
- integration-gate
|
||||
if: inputs.run_coverage != false
|
||||
if: github.event_name != 'workflow_dispatch' || inputs.run_coverage != false
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
@@ -476,7 +476,7 @@ jobs:
|
||||
needs:
|
||||
- build-image
|
||||
- integration-gate
|
||||
if: inputs.run_coverage != false
|
||||
if: github.event_name != 'workflow_dispatch' || inputs.run_coverage != false
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
@@ -540,7 +540,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- coverage-gate
|
||||
if: inputs.run_coverage != false
|
||||
if: github.event_name != 'workflow_dispatch' || inputs.run_coverage != false
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
@@ -611,7 +611,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- codecov-gate
|
||||
if: inputs.run_security_scans != false && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork != true)
|
||||
if: (github.event_name != 'workflow_dispatch' || inputs.run_security_scans != false) && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork != true)
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
@@ -652,7 +652,7 @@ jobs:
|
||||
needs:
|
||||
- build-image
|
||||
- codecov-gate
|
||||
if: inputs.run_security_scans != false && needs.build-image.outputs.push_image == 'true'
|
||||
if: (github.event_name != 'workflow_dispatch' || inputs.run_security_scans != false) && needs.build-image.outputs.push_image == 'true'
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
@@ -696,7 +696,7 @@ jobs:
|
||||
needs:
|
||||
- build-image
|
||||
- codecov-gate
|
||||
if: inputs.run_security_scans != false && needs.build-image.outputs.push_image == 'true'
|
||||
if: (github.event_name != 'workflow_dispatch' || inputs.run_security_scans != false) && needs.build-image.outputs.push_image == 'true'
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
Reference in New Issue
Block a user