File tree Expand file tree Collapse file tree 7 files changed +33
-26
lines changed Expand file tree Collapse file tree 7 files changed +33
-26
lines changed Original file line number Diff line number Diff line change 24
24
25
25
jobs :
26
26
test :
27
- if : ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
27
+ if : |-
28
+ ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
28
29
runs-on : ' ubuntu-latest'
29
30
30
31
steps :
@@ -35,13 +36,13 @@ jobs:
35
36
- id : ' compute-test-uid'
36
37
name : ' Compute test UID'
37
38
run : |-
38
- echo "TEST_UID=${GITHUB_JOB}-${GITHUB_SHA::7}-${GITHUB_RUN_NUMBER}" >> ${GITHUB_ENV}
39
+ echo "TEST_UID=${GITHUB_JOB}-${GITHUB_SHA::7}-${GITHUB_RUN_NUMBER}" >> " ${GITHUB_ENV}"
39
40
40
41
- id : ' set-up-node'
41
42
name : ' Set up Node'
42
43
uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
43
44
with :
44
- node-version : ' 20.x '
45
+ node-version-file : ' package.json '
45
46
46
47
- id : ' build'
47
48
name : ' Build'
69
70
70
71
- id : ' create-pipeline'
71
72
name : ' Create pipeline'
72
- run : ' gcloud deploy apply --file=tests/fixtures/clouddeploy.yaml --region=${REGION}'
73
+ run : |-
74
+ gcloud deploy apply \
75
+ --file="tests/fixtures/clouddeploy.yaml" \
76
+ --region="${REGION}"
73
77
74
78
- id : ' create-release'
75
79
name : ' Create release'
89
93
90
94
- id : ' report-release'
91
95
name : ' Report Cloud Deploy release'
96
+ env :
97
+ RELEASE_NAME : ' ${{ steps.create-release.outputs.name }}'
98
+ RELEASE_LINK : ' ${{ steps.create-release.outputs.link }}'
92
99
run : |-
93
- echo "Created release: ${{ steps.create-release.outputs.name } }"
94
- echo "Release link: ${{ steps.create-release.outputs.link } }"
100
+ echo "Created release: ${RELEASE_NAME }"
101
+ echo "Release link: ${RELEASE_LINK }"
95
102
96
103
- id : ' run-e2e-tests'
97
104
name : ' Run Tests'
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 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- name : Create Cloud Deploy Release
16
- author : Google LLC
15
+ name : ' Create Cloud Deploy Release'
16
+ author : ' Google LLC'
17
17
description : |-
18
18
Use this action to create a release in Cloud Deploy.
19
19
@@ -112,12 +112,12 @@ inputs:
112
112
113
113
outputs :
114
114
name :
115
- description :
115
+ description : |-
116
116
The full name of the release in Cloud Deploy, including project and
117
117
pipeline names, as well as the chosen name of the release itself.
118
118
119
119
link :
120
- description :
120
+ description : |-
121
121
A link to the Cloud Deploy release in the Google Cloud Web Console.
122
122
123
123
branding :
Original file line number Diff line number Diff line change 10
10
"test" : " node --require ts-node/register --test-reporter spec --test ./tests/unit/main.test.ts ./tests/unit/output-parser.test.ts" ,
11
11
"e2e-tests" : " node --require ts-node/register --test-reporter spec --test ./tests/e2e.test.ts"
12
12
},
13
+ "engines" : {
14
+ "node" : " 20.x" ,
15
+ "npm" : " 10.x"
16
+ },
13
17
"repository" : {
14
18
"type" : " git" ,
15
19
"url" : " https://github.com/google-github-actions/create-cloud-deploy-release.git"
Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ metadata:
19
19
description: 'Deployment pipeline for GitHub Action tests'
20
20
serialPipeline:
21
21
stages:
22
- - targetId: 'gha-test-target'
23
- profiles: ['gha-test']
22
+ - targetId: 'gha-test-target'
23
+ profiles: ['gha-test']
24
+
25
+ # yamllint disable-line rule:document-start
24
26
---
25
- apiVersion: deploy.cloud.google.com/v1
27
+ apiVersion: ' deploy.cloud.google.com/v1'
26
28
kind: 'Target'
27
29
metadata:
28
30
name: 'gha-test-target'
Original file line number Diff line number Diff line change 20
20
template :
21
21
spec :
22
22
containers :
23
- - name : ' gha-test-app'
24
- image : ' gha-test-app'
23
+ - name : ' gha-test-app'
24
+ image : ' gha-test-app'
25
25
scaling :
26
26
maxInstanceCount : ' 1'
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ kind: 'Config'
17
17
metadata :
18
18
name : ' gha-test'
19
19
profiles :
20
- - name : ' gha-test'
21
- manifests :
22
- rawYaml :
23
- - ' gha-test-app.yaml'
20
+ - name : ' gha-test'
21
+ manifests :
22
+ rawYaml :
23
+ - ' gha-test-app.yaml'
24
24
deploy :
25
25
cloudrun : {}
You can’t perform that action at this time.
0 commit comments