File tree Expand file tree Collapse file tree 7 files changed +19
-15
lines changed Expand file tree Collapse file tree 7 files changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,17 @@ jobs:
23
23
24
24
- uses : ' google-github-actions/setup-gcloud@v2' # ratchet:exclude
25
25
26
- - name : Delete services
26
+ - name : ' Delete services'
27
+ env :
28
+ PROJECT_ID : ' ${{ vars.PROJECT_ID }}'
27
29
run : |-
28
- gcloud config set core/project "${{ vars. PROJECT_ID } }"
30
+ gcloud config set " core/project" "${PROJECT_ID}"
29
31
30
32
# List and delete all versions that were deployed 30 minutes ago or
31
33
# earlier. The date math here is a little weird, but we're looking for
32
34
# deployments "earlier than" 30 minutes ago, so it's less than since
33
35
# 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
35
37
echo "Deleting ${NAME}..."
36
- gcloud app versions delete ${NAME} --quiet
38
+ gcloud app versions delete " ${NAME}" --quiet
37
39
done)
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ concurrency:
17
17
18
18
jobs :
19
19
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]' }}
21
22
permissions :
22
23
contents : ' read'
23
24
id-token : ' write'
28
29
29
30
- uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
30
31
with :
31
- node-version : ' 20.x '
32
+ node-version-file : ' package.json '
32
33
33
34
- name : ' npm build'
34
35
run : ' npm ci && npm run build'
46
47
id : ' deploy'
47
48
uses : ' ./'
48
49
with :
50
+ project_id : ' ${{ vars.PROJECT_ID }}'
49
51
working_directory : ' ${{ github.workspace }}/example-app'
50
52
build_env_vars : |-
51
53
FOO=bar
Original file line number Diff line number Diff line change @@ -31,16 +31,10 @@ jobs:
31
31
32
32
- uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
33
33
with :
34
- node-version : ' 20.x '
34
+ node-version-file : ' package.json '
35
35
36
36
- name : ' npm build'
37
37
run : ' npm ci && npm run build'
38
38
39
- - name : ' npm lint'
40
- # There's no need to run the linter for each operating system, since it
41
- # will find the same thing 3x and clog up the PR review.
42
- if : ${{ matrix.os == 'ubuntu-latest' }}
43
- run : ' npm run lint'
44
-
45
39
- name : ' npm test'
46
40
run : ' npm run test'
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ inputs:
54
54
description : |-
55
55
Promote the deployed version to receive all traffic.
56
56
required : false
57
- default : " true"
57
+ default : ' true'
58
58
59
59
flags :
60
60
description : |-
Original file line number Diff line number Diff line change @@ -16,4 +16,6 @@ set -eEuo pipefail
16
16
FILES=" $( node -e " process.stdout.write(require('node:fs').readdirSync('./', { recursive: true }).filter((e) => {return e.endsWith('.test.ts') && !e.startsWith('node_modules');}).sort().join(' '));" ) "
17
17
18
18
set -x
19
+
20
+ # shellcheck disable=SC2086
19
21
exec node --require ts-node/register --test-reporter spec --test ${FILES}
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- runtime : nodejs20
15
+ runtime : ' nodejs20'
Original file line number Diff line number Diff line change 9
9
"format" : " eslint . --fix" ,
10
10
"test" : " bash ./bin/runTests.sh"
11
11
},
12
+ "engines" : {
13
+ "node" : " 20.x" ,
14
+ "npm" : " 10.x"
15
+ },
12
16
"repository" : {
13
17
"type" : " git" ,
14
18
"url" : " https://github.com/google-github-actions/deploy-appengine"
You can’t perform that action at this time.
0 commit comments