Skip to content

Commit a533465

Browse files
josephperrottdgp1130
authored andcommitted
ci: set up perf workflow job and create initial workflow
Set up the initial workflow to build upon.
1 parent 34574b2 commit a533465

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/perf.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Performance Tracking
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions: {}
9+
10+
defaults:
11+
run:
12+
shell: bash
13+
14+
jobs:
15+
list:
16+
timeout-minutes: 3
17+
runs-on: ubuntu-latest
18+
outputs:
19+
workflows: ${{ steps.workflows.outputs.workflows }}
20+
steps:
21+
- name: Initialize environment
22+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@53fb7c37cf14343f14ed79e2fefbbb2489ead4ee
23+
- name: Install node modules
24+
run: yarn install --immutable
25+
- id: workflows
26+
run: echo "workflows=$(yarn ng-dev perf workflows --list)" >> "$GITHUB_OUTPUT"
27+
28+
workflow:
29+
timeout-minutes: 30
30+
runs-on: ubuntu-latest
31+
needs: list
32+
strategy:
33+
matrix:
34+
workflow: ${{ fromJSON(needs.list.outputs.workflows) }}
35+
steps:
36+
- name: Initialize environment
37+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@53fb7c37cf14343f14ed79e2fefbbb2489ead4ee
38+
- name: Setup Bazel
39+
uses: angular/dev-infra/github-actions/bazel/setup@53fb7c37cf14343f14ed79e2fefbbb2489ead4ee
40+
- name: Install node modules
41+
run: yarn install --immutable
42+
- run: yarn ng-dev perf workflows --name ${{ matrix.workflow }}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
workflows:
2+
build-cli:
3+
name: Build cli
4+
prepare:
5+
- bazel clean
6+
workflow:
7+
- bazel build //packages/angular/cli:npm_package

0 commit comments

Comments
 (0)