File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 4343sleep 10
4444
4545echo " Proxy ready for use"
46+
47+ # Run test
48+ $@
49+
50+ echo " Shutting down proxy process"
51+
52+ pkill -f " cloud-sql-proxy" || echo " cloud-sql-proxy process not found. Was it already stopped?"
Original file line number Diff line number Diff line change 1313 },
1414 "scripts" : {
1515 "start" : " node server/server.js" ,
16- "system-test" : " test/proxy-setup .sh tcp && c8 mocha -p -j 2 test/server.test.js --timeout=60000 --exit && test/proxy-shutdown.sh " ,
17- "system-test-unix" : " test/proxy-setup .sh socket && c8 mocha -p -j 2 test/server-unix.test.js --timeout=60000 --exit && test/proxy-shutdown.sh " ,
16+ "system-test" : " test/run-proxy .sh && c8 mocha -p -j 2 test/server.test.js --timeout=60000 --exit" ,
17+ "system-test-unix" : " test/run-proxy .sh && c8 mocha -p -j 2 test/server-unix.test.js --timeout=60000 --exit" ,
1818 "test" : " npm run system-test && npm run system-test-unix"
1919 },
2020 "dependencies" : {
Original file line number Diff line number Diff line change 1- #! /bin/bash -e
1+ #! /bin/bash -ex
22
33# Copyright 2025 Google LLC
44#
1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- # Proof of concept: shutting down proxy
18-
19- echo " Shutting down proxy process"
20-
21- pkill -f " cloud-sql-proxy" || echo " cloud-sql-proxy process not found. Was it already stopped?"
22-
17+ # Run shared proxy setup
18+ source $GITHUB_WORKSPACE /.github/workflows/util/sql-proxy.sh
You can’t perform that action at this time.
0 commit comments