File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Push image to Docker hub and run e2e tests
1+ name : Run tests, push image to Docker hub and run e2e tests
22
33on :
44 push :
88 workflow_dispatch :
99
1010jobs :
11+ run_java_tests :
12+ name : Run Java tests
13+ uses : ./.github/workflows/run-java-tests.yml
14+
1115 push_to_registry :
1216 name : Build & Push docker image to Docker Hub
1317 runs-on : ubuntu-22.04
18+ needs :
19+ - run_java_tests
1420
1521 steps :
1622 - name : Checkout code
6369 .
6470
6571 run_cypress_tests :
72+ name : Run Cypress tests
6673 needs :
74+ - run_java_tests
6775 - push_to_registry
6876 uses : ./.github/workflows/run-cypress-tests.yml
Original file line number Diff line number Diff line change 11name : Run java tests
22
33on :
4- push :
5- pull_request :
6- branches : [main]
4+ # this workflow is only called by others, won't be executed on itself
5+ workflow_call :
76
87env :
98 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments