11name : unit-integration-tests
22on :
3- push :
3+ pull_request_target :
44 branches :
55 - develop
6- pull_request :
7-
6+ types :
7+ - opened
8+ - reopened
9+ - synchronize
810env :
911 MAPPING : |
1012 build_nats_server=src/code.cloudfoundry.org/vendor/github.com/nats-io/nats-server/v2
3436 - name : routing-release-repo
3537 uses : actions/checkout@v4
3638 with :
37- repository : cloudfoundry/routing-release.git
38- ref : develop
39+ repository : ${{ github.event.pull_request.head.repo.full_name }}
40+ ref : ${{ github.event.pull_request.head.ref }}
3941 submodules : recursive
4042 path : repo
4143 - name : Check out wg-appruntime code
6769 uses : actions/download-artifact@v4
6870 with :
6971 name : repo
70- - run : " tar -xzvf repo-artifact.tar.gz\n tar -xzvf ci-artifact.tar.gz\n "
72+ - run : |
73+ tar -xzvf repo-artifact.tar.gz
74+ tar -xzvf ci-artifact.tar.gz
7175 - name : template-tests
7276 run : |
7377 "${GITHUB_WORKSPACE}"/ci/shared/tasks/run-tests-templates/task.bash
8488 uses : actions/download-artifact@v4
8589 with :
8690 name : repo
87- - run : " tar -xzvf repo-artifact.tar.gz\n tar -xzvf ci-artifact.tar.gz\n "
91+ - run : " tar -xzvf repo-artifact.tar.gz\n tar -xzvf ci-artifact.tar.gz \n "
8892 - name : build binaries
8993 run : |
9094 export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
@@ -94,18 +98,21 @@ jobs:
9498 DIR : src/code.cloudfoundry.org/gorouter
9599 DB : mysql
96100 run : |
101+ "${GITHUB_WORKSPACE}"/ci/routing-release/helpers/configure-binaries.bash
97102 "${GITHUB_WORKSPACE}"/ci/shared/tasks/run-bin-test/task.bash --keep-going --trace -r --fail-on-pending --randomize-all --nodes=7 --race --timeout 30m --flake-attempts 2
98103 - name : cf-tcp-router-mysql
99104 env :
100105 DIR : src/code.cloudfoundry.org/cf-tcp-router
101106 DB : mysql
102107 run : |
108+ "${GITHUB_WORKSPACE}"/ci/routing-release/helpers/configure-binaries.bash
103109 "${GITHUB_WORKSPACE}"/ci/shared/tasks/run-bin-test/task.bash --keep-going --trace -r --fail-on-pending --randomize-all --nodes=7 --race --timeout 30m --flake-attempts 2
104110 - name : routing-api-mysql
105111 env :
106112 DIR : src/code.cloudfoundry.org/routing-api
107113 DB : mysql
108114 run : |
115+ "${GITHUB_WORKSPACE}"/ci/routing-release/helpers/configure-binaries.bash
109116 "${GITHUB_WORKSPACE}"/ci/shared/tasks/run-bin-test/task.bash --keep-going --trace -r --fail-on-pending --randomize-all --nodes=7 --race --timeout 30m --flake-attempts 2
110117 test-repos-withoutdb :
111118 runs-on : ubuntu-latest
@@ -120,7 +127,9 @@ jobs:
120127 uses : actions/download-artifact@v4
121128 with :
122129 name : repo
123- - run : " tar -xzvf repo-artifact.tar.gz\n tar -xzvf ci-artifact.tar.gz\n "
130+ - run : |
131+ tar -xzvf repo-artifact.tar.gz
132+ tar -xzvf ci-artifact.tar.gz
124133 - name : build binaries
125134 run : |
126135 export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
@@ -156,7 +165,9 @@ jobs:
156165 uses : actions/download-artifact@v4
157166 with :
158167 name : repo
159- - run : " tar -xzvf repo-artifact.tar.gz\n tar -xzvf ci-artifact.tar.gz\n "
168+ - run : |
169+ tar -xzvf repo-artifact.tar.gz
170+ tar -xzvf ci-artifact.tar.gz
160171 - name : build binaries
161172 run : |
162173 export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
@@ -192,7 +203,9 @@ jobs:
192203 uses : actions/download-artifact@v4
193204 with :
194205 name : repo
195- - run : " tar -xzvf repo-artifact.tar.gz\n tar -xzvf ci-artifact.tar.gz\n "
206+ - run : |
207+ tar -xzvf repo-artifact.tar.gz
208+ tar -xzvf ci-artifact.tar.gz
196209 - name : build binaries
197210 run : |
198211 export DEFAULT_PARAMS="${GITHUB_WORKSPACE}/ci/routing-release/default-params/build-binaries/linux.yml"
0 commit comments