Skip to content

Commit 30d0489

Browse files
authored
Update deps (#65)
1 parent 1837c81 commit 30d0489

File tree

8 files changed

+652
-636
lines changed

8 files changed

+652
-636
lines changed

.github/workflows/draft-release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ on:
1515

1616
jobs:
1717
draft-release:
18-
name: 'Draft release'
19-
uses: 'google-github-actions/.github/.github/workflows/draft-release.yml@v0'
18+
uses: 'google-github-actions/.github/.github/workflows/draft-release.yml@v3' # ratchet:exclude
2019
with:
2120
version_strategy: '${{ github.event.inputs.version_strategy }}'
22-
# secrets must be explicitly passed to reusable workflows https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
2321
secrets:
2422
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'

.github/workflows/integration.yml

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -28,80 +28,80 @@ jobs:
2828
runs-on: 'ubuntu-latest'
2929

3030
steps:
31-
- id: 'checkout'
32-
name: 'Checkout'
33-
uses: 'actions/checkout@v4'
34-
35-
- id: 'compute-test-uid'
36-
name: 'Compute test UID'
37-
run: |-
38-
echo "TEST_UID=${GITHUB_JOB}-${GITHUB_SHA::7}-${GITHUB_RUN_NUMBER}" >> ${GITHUB_ENV}
39-
40-
- id: 'set-up-node'
41-
name: 'Set up Node'
42-
uses: 'actions/setup-node@v4'
43-
with:
44-
node-version: '20.x'
45-
46-
- id: 'build'
47-
name: 'Build'
48-
run: 'npm ci && npm run build'
49-
50-
- id: 'auth'
51-
name: 'Auth'
52-
uses: 'google-github-actions/auth@v2'
53-
with:
54-
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
55-
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
56-
57-
- id: 'gcloud-setup'
58-
name: 'Set up Cloud SDK'
59-
uses: 'google-github-actions/setup-gcloud@v2'
60-
with:
61-
project_id: '${{ vars.PROJECT_ID }}'
62-
63-
- id: 'populate-pipeline-template'
64-
name: 'Populate values in template for Cloud Deploy pipeline and target'
65-
run: 'envsubst < tests/fixtures/clouddeploy.yaml.template > tests/fixtures/clouddeploy.yaml'
66-
env:
67-
PROJECT_ID: '${{ vars.PROJECT_ID }}'
68-
REGION: '${{ env.REGION }}'
69-
70-
- id: 'create-pipeline'
71-
name: 'Create pipeline'
72-
run: 'gcloud deploy apply --file=tests/fixtures/clouddeploy.yaml --region=${REGION}'
73-
74-
- id: 'create-release'
75-
name: 'Create release'
76-
uses: './'
77-
with:
78-
name: '${{ env.TEST_UID }}'
79-
region: '${{ env.REGION }}'
80-
delivery_pipeline: 'gha-test-pipeline'
81-
source: 'tests/fixtures/'
82-
images: 'gha-test-app=gcr.io/cloudrun/hello:latest'
83-
description: 'GHA test ${{ env.TEST_UID }}'
84-
disable_initial_rollout: true
85-
labels: |-
86-
label1=value1
87-
annotations: |-
88-
annotation1=value1
89-
90-
- id: 'report-release'
91-
name: 'Report Cloud Deploy release'
92-
run: |-
93-
echo "Created release: ${{ steps.create-release.outputs.name }}"
94-
echo "Release link: ${{ steps.create-release.outputs.link }}"
95-
96-
- id: 'run-e2e-tests'
97-
name: 'Run Tests'
98-
run: 'npm run e2e-tests'
99-
env:
100-
ANNOTATIONS: '{"git-sha":"${{ github.sha }}", "annotation1":"value1"}'
101-
DELIVERY_PIPELINE: 'gha-test-pipeline'
102-
DESCRIPTION: 'GHA test ${{ env.TEST_UID }}'
103-
IMAGES: 'gha-test-app=gcr.io/cloudrun/hello:latest'
104-
LABELS: '{"managed-by":"github-actions", "label1":"value1"}'
105-
NAME: 'projects/${{ vars.PROJECT_ID }}/locations/${{ env.REGION }}/deliveryPipelines/gha-test-pipeline/releases/${{ env.TEST_UID }}'
106-
PROJECT_ID: '${{ vars.PROJECT_ID }}'
107-
REGION: '${{ env.REGION }}'
31+
- id: 'checkout'
32+
name: 'Checkout'
33+
uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
34+
35+
- id: 'compute-test-uid'
36+
name: 'Compute test UID'
37+
run: |-
38+
echo "TEST_UID=${GITHUB_JOB}-${GITHUB_SHA::7}-${GITHUB_RUN_NUMBER}" >> ${GITHUB_ENV}
39+
40+
- id: 'set-up-node'
41+
name: 'Set up Node'
42+
uses: 'actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
43+
with:
44+
node-version: '20.x'
45+
46+
- id: 'build'
47+
name: 'Build'
48+
run: 'npm ci && npm run build'
49+
50+
- id: 'auth'
51+
name: 'Auth'
52+
uses: 'google-github-actions/auth@v2' # ratchet:exclude
53+
with:
54+
workload_identity_provider: '${{ vars.WIF_PROVIDER_NAME }}'
55+
service_account: '${{ vars.SERVICE_ACCOUNT_EMAIL }}'
56+
57+
- id: 'gcloud-setup'
58+
name: 'Set up Cloud SDK'
59+
uses: 'google-github-actions/setup-gcloud@v2' # ratchet:exclude
60+
with:
61+
project_id: '${{ vars.PROJECT_ID }}'
62+
63+
- id: 'populate-pipeline-template'
64+
name: 'Populate values in template for Cloud Deploy pipeline and target'
65+
run: 'envsubst < tests/fixtures/clouddeploy.yaml.template > tests/fixtures/clouddeploy.yaml'
66+
env:
67+
PROJECT_ID: '${{ vars.PROJECT_ID }}'
68+
REGION: '${{ env.REGION }}'
69+
70+
- id: 'create-pipeline'
71+
name: 'Create pipeline'
72+
run: 'gcloud deploy apply --file=tests/fixtures/clouddeploy.yaml --region=${REGION}'
73+
74+
- id: 'create-release'
75+
name: 'Create release'
76+
uses: './'
77+
with:
78+
name: '${{ env.TEST_UID }}'
79+
region: '${{ env.REGION }}'
80+
delivery_pipeline: 'gha-test-pipeline'
81+
source: 'tests/fixtures/'
82+
images: 'gha-test-app=gcr.io/cloudrun/hello:latest'
83+
description: 'GHA test ${{ env.TEST_UID }}'
84+
disable_initial_rollout: true
85+
labels: |-
86+
label1=value1
87+
annotations: |-
88+
annotation1=value1
89+
90+
- id: 'report-release'
91+
name: 'Report Cloud Deploy release'
92+
run: |-
93+
echo "Created release: ${{ steps.create-release.outputs.name }}"
94+
echo "Release link: ${{ steps.create-release.outputs.link }}"
95+
96+
- id: 'run-e2e-tests'
97+
name: 'Run Tests'
98+
run: 'npm run e2e-tests'
99+
env:
100+
ANNOTATIONS: '{"git-sha":"${{ github.sha }}", "annotation1":"value1"}'
101+
DELIVERY_PIPELINE: 'gha-test-pipeline'
102+
DESCRIPTION: 'GHA test ${{ env.TEST_UID }}'
103+
IMAGES: 'gha-test-app=gcr.io/cloudrun/hello:latest'
104+
LABELS: '{"managed-by":"github-actions", "label1":"value1"}'
105+
NAME: 'projects/${{ vars.PROJECT_ID }}/locations/${{ env.REGION }}/deliveryPipelines/gha-test-pipeline/releases/${{ env.TEST_UID }}'
106+
PROJECT_ID: '${{ vars.PROJECT_ID }}'
107+
REGION: '${{ env.REGION }}'

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616

1717
steps:
1818
- name: 'Checkout'
19-
uses: 'actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871' # ratchet:actions/checkout@v4
19+
uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
2020

2121
- name: 'Publish'
2222
id: 'publish'
23-
uses: 'actions/publish-immutable-action@4b1aa5c1cde5fedc80d52746c9546cb5560e5f53' # ratchet:actions/[email protected].3
23+
uses: 'actions/publish-immutable-action@4bc8754ffc40f27910afb20287dbbbb675a4e978' # ratchet:actions/[email protected].4
2424
with:
2525
github-token: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88

99
jobs:
1010
release:
11-
if: |-
12-
${{ startsWith(github.event.head_commit.message, 'Release: v') }}
13-
name: 'Release'
14-
uses: 'google-github-actions/.github/.github/workflows/release.yml@v1' # ratchet:exclude
15-
# secrets must be explicitly passed to reusable workflows https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows\#using-inputs-and-secrets-in-a-reusable-workflow
11+
uses: 'google-github-actions/.github/.github/workflows/release.yml@v3' # ratchet:exclude
1612
secrets:
1713
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'

.github/workflows/unit.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os:
24-
- 'ubuntu-latest'
25-
- 'windows-latest'
26-
- 'macos-latest'
24+
- 'ubuntu-latest'
25+
- 'windows-latest'
26+
- 'macos-latest'
2727
runs-on: '${{ matrix.os }}'
2828

2929
steps:
30-
- uses: 'actions/checkout@v4'
30+
- uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
3131

32-
- uses: 'actions/setup-node@v4'
33-
with:
34-
node-version: '20.x'
32+
- uses: 'actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
33+
with:
34+
node-version: '20.x'
3535

36-
- name: 'npm build'
37-
run: 'npm ci && npm run build'
36+
- name: 'npm build'
37+
run: 'npm ci && npm run build'
3838

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'
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'
4444

45-
- name: 'npm test'
46-
run: 'npm run test'
45+
- name: 'npm test'
46+
run: 'npm run test'

dist/main/index.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)