Skip to content

Commit be21acc

Browse files
josephperrottalan-agius4
authored andcommitted
ci: run workflows for all releasable branches
1 parent 06690d8 commit be21acc

File tree

4 files changed

+661
-30
lines changed

4 files changed

+661
-30
lines changed

.github/workflows/perf.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Performance Tracking
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# Run workflows for all releasable branches
8+
- '[0-9]+.[0-9]+.x'
9+
10+
permissions:
11+
contents: 'read'
12+
id-token: 'write'
13+
14+
defaults:
15+
run:
16+
shell: bash
17+
18+
jobs:
19+
list:
20+
timeout-minutes: 3
21+
runs-on: ubuntu-latest
22+
outputs:
23+
workflows: ${{ steps.workflows.outputs.workflows }}
24+
steps:
25+
- name: Initialize environment
26+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@9ad44d7add69b53cec32d6486e9e8a83e7ec6622
27+
- name: Install node modules
28+
run: yarn install --immutable
29+
- id: workflows
30+
run: echo "workflows=$(yarn ng-dev perf workflows --list)" >> "$GITHUB_OUTPUT"
31+
32+
workflow:
33+
timeout-minutes: 30
34+
runs-on: ubuntu-latest
35+
needs: list
36+
strategy:
37+
matrix:
38+
workflow: ${{ fromJSON(needs.list.outputs.workflows) }}
39+
steps:
40+
- name: Initialize environment
41+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@9ad44d7add69b53cec32d6486e9e8a83e7ec6622
42+
- name: Setup Bazel
43+
uses: angular/dev-infra/github-actions/bazel/setup@9ad44d7add69b53cec32d6486e9e8a83e7ec6622
44+
- name: Install node modules
45+
run: yarn install --immutable
46+
# We utilize the google-github-actions/auth action to allow us to get an active credential using workflow
47+
# identity federation. This allows us to request short lived credentials on demand, rather than storing
48+
# credentials in secrets long term. More information can be found at:
49+
# https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-google-cloud-platform
50+
- uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f # v2.1.7
51+
with:
52+
project_id: 'internal-200822'
53+
workload_identity_provider: 'projects/823469418460/locations/global/workloadIdentityPools/measurables-tracking/providers/angular'
54+
service_account: '[email protected]'
55+
- run: yarn ng-dev perf workflows --name ${{ matrix.workflow }} --commit-sha ${{github.sha}}

.ng-dev/dx-perf-workflows.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
workflows:
2+
build-cli:
3+
name: Build cli
4+
prepare:
5+
- bazel clean
6+
workflow:
7+
- bazel build //packages/angular/cli:npm_package
8+
angular-build-integration:
9+
name: Angular Build Integration
10+
disabled: true
11+
prepare:
12+
- bazel clean
13+
workflow:
14+
- bazel test //packages/angular/build:integration_tests

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-rc.3",
66-
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#5f5021669687fdd811f916dc9699eca753ab4a13",
66+
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#579163373d32ec04ef9dab6c21e34bfc6d40b127",
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)