Skip to content

Commit 462e73f

Browse files
josephperrottclydin
authored andcommitted
ci: update perf workflow to the latest version
Update the perf workflow to the latest version to allow for uploading results to database
1 parent 20411f6 commit 462e73f

File tree

3 files changed

+587
-30
lines changed

3 files changed

+587
-30
lines changed

.github/workflows/perf.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ on:
55
branches:
66
- main
77

8-
permissions: {}
8+
permissions:
9+
contents: 'read'
10+
id-token: 'write'
911

1012
defaults:
1113
run:
@@ -39,4 +41,13 @@ jobs:
3941
uses: angular/dev-infra/github-actions/bazel/setup@53fb7c37cf14343f14ed79e2fefbbb2489ead4ee
4042
- name: Install node modules
4143
run: yarn install --immutable
42-
- run: yarn ng-dev perf workflows --name ${{ matrix.workflow }}
44+
# We utilize the google-github-actions/auth action to allow us to get an active credential using workflow
45+
# identity federation. This allows us to request short lived credentials on demand, rather than storing
46+
# credentials in secrets long term. More information can be found at:
47+
# https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-google-cloud-platform
48+
- uses: 'google-github-actions/auth@v2'
49+
with:
50+
project_id: 'internal-200822'
51+
workload_identity_provider: 'projects/823469418460/locations/global/workloadIdentityPools/measurables-tracking/providers/angular'
52+
service_account: '[email protected]'
53+
- run: yarn ng-dev perf workflows --name ${{ matrix.workflow }} --commit-sha ${{github.sha}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@angular/forms": "19.0.0",
6464
"@angular/localize": "19.0.0",
6565
"@angular/material": "19.0.0",
66-
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#0004779f2460c3b030b056e9f4f2c5e921e11039",
66+
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#0692d4d0707f3a40f862e761eaf0be3b693326df",
6767
"@angular/platform-browser": "19.0.0",
6868
"@angular/platform-browser-dynamic": "19.0.0",
6969
"@angular/platform-server": "19.0.0",

0 commit comments

Comments
 (0)