Skip to content

Commit 8732c07

Browse files
author
David Cavazos
committed
disable nightly batch job
1 parent 069d376 commit 8732c07

File tree

1 file changed

+35
-36
lines changed

1 file changed

+35
-36
lines changed

.github/workflows/experimental.yaml

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ on:
2424
- synchronize
2525
- labeled
2626
schedule:
27-
- cron: 0 0 * * 0 # Run at midnight (00:00) every Sunday
27+
# https://crontab.guru/#0_12_*_*_0
28+
- cron: 0 12 * * 0 # At 12:00 on Sunday
2829

2930
env:
3031
GO_VERSION: ^1.22.0
@@ -72,9 +73,7 @@ jobs:
7273
strategy:
7374
fail-fast: false
7475
matrix:
75-
# package: ${{ fromJson(needs.affected.outputs.nodejs) }}
76-
# package: ${{ fromJson(github.event_name == 'pull_request' && needs.affected.outputs.nodejs || '[]') }}
77-
package: ${{ fromJson('[]') }}
76+
package: ${{ fromJson(github.event_name == 'pull_request' && needs.affected.outputs.nodejs || '[]') }}
7877
steps:
7978
- uses: actions/checkout@v4
8079
with:
@@ -93,35 +92,35 @@ jobs:
9392
env:
9493
GOOGLE_SAMPLES_PROJECT: long-door-651
9594

96-
nodejs-nightly:
97-
name: Node.js 20
98-
runs-on: ubuntu-latest
99-
permissions:
100-
id-token: write # needed for google-github-actions/auth
101-
strategy:
102-
fail-fast: false
103-
matrix:
104-
# run: ${{ fromJson(github.event_name == 'schedule' && '["nightly tests"]' || '[]') }}
105-
run: ${{ fromJson('["nightly tests"]') }}
106-
steps:
107-
- uses: actions/checkout@v4
108-
with:
109-
ref: ${{ github.event.pull_request.head.sha }}
110-
- uses: actions/setup-node@v4
111-
with:
112-
node-version: 20
113-
- uses: google-github-actions/auth@v2
114-
with:
115-
project_id: long-door-651
116-
workload_identity_provider: projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
117-
service_account: [email protected]
118-
access_token_lifetime: 600s # 10 minutes
119-
- uses: actions/setup-go@v5
120-
with:
121-
go-version: ${{ env.GO_VERSION }}
122-
- run: go build -o ${{ github.workspace }}/tools ./cmd/...
123-
working-directory: .github/workflows/samples-tools
124-
- name: Run all tests
125-
run: ./tools run-all .github/config/nodejs.jsonc .github/scripts/nodejs-test.sh
126-
env:
127-
GOOGLE_SAMPLES_PROJECT: long-door-651
95+
# nodejs-nightly:
96+
# name: Node.js 20
97+
# runs-on: ubuntu-latest
98+
# permissions:
99+
# id-token: write # needed for google-github-actions/auth
100+
# strategy:
101+
# fail-fast: false
102+
# matrix:
103+
# # run: ${{ fromJson(github.event_name == 'schedule' && '["nightly tests"]' || '[]') }}
104+
# run: ${{ fromJson('["nightly tests"]') }}
105+
# steps:
106+
# - uses: actions/checkout@v4
107+
# with:
108+
# ref: ${{ github.event.pull_request.head.sha }}
109+
# - uses: actions/setup-node@v4
110+
# with:
111+
# node-version: 20
112+
# - uses: google-github-actions/auth@v2
113+
# with:
114+
# project_id: long-door-651
115+
# workload_identity_provider: projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
116+
# service_account: [email protected]
117+
# access_token_lifetime: 600s # 10 minutes
118+
# - uses: actions/setup-go@v5
119+
# with:
120+
# go-version: ${{ env.GO_VERSION }}
121+
# - run: go build -o ${{ github.workspace }}/tools ./cmd/...
122+
# working-directory: .github/workflows/samples-tools
123+
# - name: Run all tests
124+
# run: ./tools run-all .github/config/nodejs.jsonc .github/scripts/nodejs-test.sh
125+
# env:
126+
# GOOGLE_SAMPLES_PROJECT: long-door-651

0 commit comments

Comments
 (0)