Skip to content

Commit c96fcc9

Browse files
committed
chore: update test structure
1 parent 490442d commit c96fcc9

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.cl/cloudbuild.yaml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ steps:
2424
- |
2525
npm link
2626
npm link @google-cloud/cloud-sql-connector
27-
npx tap -c -t0 --disable-coverage --allow-empty-coverage system-test -o test_results.tap
28-
cat test_results.tap | npx tap - --reporter=junit > sponge_log.xml
27+
npx tap -c -t0 --disable-coverage --allow-empty-coverage system-test
2928
timeout: 300s
29+
waitFor: ["-"]
3030
- id: run sample tests
3131
name: node:latest
3232
entrypoint: bash
@@ -38,20 +38,9 @@ steps:
3838
- |
3939
npm link
4040
npm link @google-cloud/cloud-sql-connector
41-
npx tap -c -t0 --disable-coverage --allow-empty-coverage examples/*/*/test/*{.cjs,.mjs,.ts} -o test_results.tap
41+
npx tap -c -t0 --disable-coverage --allow-empty-coverage examples/*/*/test/*{.cjs,.mjs,.ts}
4242
timeout: 300s
43-
- id: run unit tests
44-
name: node:latest
45-
entrypoint: bash
46-
env:
47-
- "TAP_DISABLE_COVERAGE=1"
48-
- "TAP_ALLOW_MISSING_COVERAGE=1"
49-
- "TAP_ALLOW_INCOMPLETE_COVERAGE=1"
50-
- "TAP_ALLOW_EMPTY_COVERAGE=1"
51-
args:
52-
- "-c"
53-
- |
54-
npx tap -c -t0 -o test_results.tap test
43+
waitFor: ["-"]
5544
availableSecrets:
5645
secretManager:
5746
- versionName: 'projects/$PROJECT_ID/secrets/MYSQL_CONNECTION_NAME/versions/latest'

0 commit comments

Comments
 (0)