@@ -3,11 +3,8 @@ name: "CI/CD pull request"
33# The total recommended execution time for the "CI/CD Pull Request" workflow is around 20 minutes.
44
55on :
6- push :
7- branches :
8- - " **"
96 pull_request :
10- types : [opened, reopened]
7+ types : [opened, synchronize, reopened]
118
129jobs :
1310 metadata :
7572 python_version : " ${{ needs.metadata.outputs.python_version }}"
7673 version : " ${{ needs.metadata.outputs.version }}"
7774 secrets : inherit
78- test-stage : # Recommended maximum execution time is 5 minutes
79- name : " Test stage"
80- needs : [metadata, commit-stage]
81- uses : ./.github/workflows/stage-2-test.yaml
82- with :
83- build_datetime : " ${{ needs.metadata.outputs.build_datetime }}"
84- build_timestamp : " ${{ needs.metadata.outputs.build_timestamp }}"
85- build_epoch : " ${{ needs.metadata.outputs.build_epoch }}"
86- nodejs_version : " ${{ needs.metadata.outputs.nodejs_version }}"
87- python_version : " ${{ needs.metadata.outputs.python_version }}"
88- version : " ${{ needs.metadata.outputs.version }}"
89- secrets : inherit
90- build-stage : # Recommended maximum execution time is 3 minutes
91- name : " Build stage"
92- needs : [metadata, test-stage]
93- uses : ./.github/workflows/stage-3-build.yaml
94- if : needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened'))
95- with :
96- build_datetime : " ${{ needs.metadata.outputs.build_datetime }}"
97- build_timestamp : " ${{ needs.metadata.outputs.build_timestamp }}"
98- build_epoch : " ${{ needs.metadata.outputs.build_epoch }}"
99- nodejs_version : " ${{ needs.metadata.outputs.nodejs_version }}"
100- python_version : " ${{ needs.metadata.outputs.python_version }}"
101- version : " ${{ needs.metadata.outputs.version }}"
102- secrets : inherit
103- acceptance-stage : # Recommended maximum execution time is 10 minutes
104- name : " Acceptance stage"
105- needs : [metadata, build-stage]
106- uses : ./.github/workflows/stage-4-acceptance.yaml
107- if : needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened'))
108- with :
109- build_datetime : " ${{ needs.metadata.outputs.build_datetime }}"
110- build_timestamp : " ${{ needs.metadata.outputs.build_timestamp }}"
111- build_epoch : " ${{ needs.metadata.outputs.build_epoch }}"
112- nodejs_version : " ${{ needs.metadata.outputs.nodejs_version }}"
113- python_version : " ${{ needs.metadata.outputs.python_version }}"
114- version : " ${{ needs.metadata.outputs.version }}"
115- secrets : inherit
0 commit comments