Skip to content

Commit 20b11db

Browse files
committed
Add pre system tests to the first step
1 parent 051f019 commit 20b11db

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

handwritten/bigtable/cloudbuild.yaml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,10 @@ steps:
1111
npm install -g npm@latest
1212
npm config set prefix /usr/local
1313
npm install
14+
npm run presystem-test
1415
dir: 'handwritten/bigtable' # Changed to '.' as the cloudbuild.yaml is in this directory
1516
id: 'install-dependencies'
1617

17-
# 2. (Optional) Run pre-system-test.sh if it exists
18-
- name: 'gcr.io/cloud-builders/npm/pre-system-test'
19-
entrypoint: 'npm'
20-
args: ['run', 'presystem-test']
21-
dir: 'handwritten/bigtable'
22-
env:
23-
- 'GCLOUD_PROJECT=${_GCP_PROJECT_ID}' # Pass project ID via build variable
24-
# If you need specific credentials from Secret Manager, uncomment these:
25-
# - 'GOOGLE_APPLICATION_CREDENTIALS=/secrets/sa-key.json'
26-
id: 'pre-run-system-tests'
27-
# For Secret Manager, uncomment these (adjust secret name and volume path as needed):
28-
# secretEnv: ['SA_KEY']
29-
# volumes:
30-
# - name: 'sa-keys'
31-
# path: '/secrets'
32-
3318
# 3. Configure environment variables for the tests and run system tests
3419
# - GOOGLE_APPLICATION_CREDENTIALS: GCB steps run as a service account
3520
# that is typically granted permissions directly. Explicitly setting

0 commit comments

Comments
 (0)