File tree Expand file tree Collapse file tree 7 files changed +20
-10
lines changed
Expand file tree Collapse file tree 7 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,17 @@ jobs:
2323
2424 - uses : ' google-github-actions/setup-gcloud@v2' # ratchet:exclude
2525
26- - name : Delete services
26+ - name : ' Delete services'
27+ env :
28+ PROJECT_ID : ' ${{ vars.PROJECT_ID }}'
2729 run : |-
28- gcloud config set core/project "${{ vars. PROJECT_ID } }"
30+ gcloud config set " core/project" "${PROJECT_ID}"
2931
3032 # List and delete all versions that were deployed 30 minutes ago or
3133 # earlier. The date math here is a little weird, but we're looking for
3234 # deployments "earlier than" 30 minutes ago, so it's less than since
3335 # time increases.
34- (IFS=$'\n'; for NAME in $(gcloud app versions list --format=" value(id)" --filter=" service != "default" AND version.createTime < ' -pt30m'" ); do
36+ (IFS=$'\n'; for NAME in $(gcloud app versions list --format=' value(id)' --filter=' service != "default" AND version.createTime < " -pt30m"' ); do
3537 echo "Deleting ${NAME}..."
36- gcloud app versions delete ${NAME} --quiet
38+ gcloud app versions delete " ${NAME}" --quiet
3739 done)
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ concurrency:
1717
1818jobs :
1919 integration :
20- if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
20+ if : |-
21+ ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
2122 permissions :
2223 contents : ' read'
2324 id-token : ' write'
2829
2930 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
3031 with :
31- node-version : ' 20.x '
32+ node-version-file : ' package.json '
3233
3334 - name : ' npm build'
3435 run : ' npm ci && npm run build'
Original file line number Diff line number Diff line change @@ -31,15 +31,16 @@ jobs:
3131
3232 - uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
3333 with :
34- node-version : ' 20.x '
34+ node-version-file : ' package.json '
3535
3636 - name : ' npm build'
3737 run : ' npm ci && npm run build'
3838
3939 - name : ' npm lint'
4040 # There's no need to run the linter for each operating system, since it
4141 # will find the same thing 3x and clog up the PR review.
42- if : ${{ matrix.os == 'ubuntu-latest' }}
42+ if : |-
43+ ${{ matrix.os == 'ubuntu-latest' }}
4344 run : ' npm run lint'
4445
4546 - name : ' npm test'
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ inputs:
5454 description : |-
5555 Promote the deployed version to receive all traffic.
5656 required : false
57- default : " true"
57+ default : ' true'
5858
5959 flags :
6060 description : |-
Original file line number Diff line number Diff line change @@ -16,4 +16,6 @@ set -eEuo pipefail
1616FILES=" $( node -e " process.stdout.write(require('node:fs').readdirSync('./', { recursive: true }).filter((e) => {return e.endsWith('.test.ts') && !e.startsWith('node_modules');}).sort().join(' '));" ) "
1717
1818set -x
19+
20+ # shellcheck disable=SC2086
1921exec node --require ts-node/register --test-reporter spec --test ${FILES}
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- runtime : nodejs20
15+ runtime : ' nodejs20'
Original file line number Diff line number Diff line change 99 "format" : " eslint . --fix" ,
1010 "test" : " bash ./bin/runTests.sh"
1111 },
12+ "engines" : {
13+ "node" : " 20.x" ,
14+ "npm" : " 10.x"
15+ },
1216 "repository" : {
1317 "type" : " git" ,
1418 "url" : " https://github.com/google-github-actions/deploy-appengine"
You can’t perform that action at this time.
0 commit comments