Skip to content

Commit 46d83b7

Browse files
committed
Updated workflow jobs
1 parent 7a34d20 commit 46d83b7

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.github/workflows/ci_build_test.yaml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,19 @@ on:
1616
required: true
1717

1818
jobs:
19+
workflow_approval:
20+
name: Approve workflow
21+
runs-on: ubuntu-20.04
22+
environment: workflow-approval
23+
steps:
24+
- name: Approve workflow
25+
run: echo For security reasons, all pull requests need to be approved first before running any automated CI.
26+
1927
fossa-scan:
2028
continue-on-error: true
2129
runs-on: ubuntu-latest
30+
needs:
31+
- workflow_approval
2232
steps:
2333
- uses: actions/checkout@v3
2434
- name: run fossa anlyze and create report
@@ -41,6 +51,8 @@ jobs:
4151

4252
semgrep:
4353
runs-on: ubuntu-latest
54+
needs:
55+
- workflow_approval
4456
name: security-sast-semgrep
4557
if: github.actor != 'dependabot[bot]'
4658
steps:
@@ -54,6 +66,8 @@ jobs:
5466
build-unit-test:
5567
name: build and run unit test
5668
runs-on: ubuntu-20.04
69+
needs:
70+
- workflow_approval
5771
steps:
5872
- name: Checkout
5973
uses: actions/checkout@v2
@@ -80,21 +94,11 @@ jobs:
8094
check_name: Unit Test Results
8195
files: "target/surefire-reports/*.xml"
8296

83-
functional_tests_approval:
84-
name: Approve functional tests
85-
runs-on: ubuntu-20.04
86-
environment: workflow-approval
87-
needs:
88-
- build-unit-test
89-
steps:
90-
- name: Approve functional tests
91-
run: echo For security reasons, all pull requests need to be approved first before running any automated CI.
92-
9397
e2e_test:
9498
name: e2e test - kafka version-${{ matrix.kafka_version }}
9599
runs-on: ubuntu-20.04
96100
needs:
97-
- functional_tests_approval
101+
- build-unit-test
98102
strategy:
99103
fail-fast: false
100104
matrix:

0 commit comments

Comments
 (0)