Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: set up perf workflow job and create initial workflow #28928

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Performance Tracking

on:
push:
branches:
- main

permissions: {}

defaults:
run:
shell: bash

jobs:
list:
timeout-minutes: 3
runs-on: ubuntu-latest
outputs:
workflows: ${{ steps.workflows.outputs.workflows }}
steps:
- name: Initialize environment
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@53fb7c37cf14343f14ed79e2fefbbb2489ead4ee
- name: Install node modules
run: yarn install --immutable
- id: workflows
run: echo "workflows=$(yarn ng-dev perf workflows --list)" >> "$GITHUB_OUTPUT"

workflow:
timeout-minutes: 30
runs-on: ubuntu-latest
needs: list
strategy:
matrix:
workflow: ${{ fromJSON(needs.list.outputs.workflows) }}
steps:
- name: Initialize environment
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@53fb7c37cf14343f14ed79e2fefbbb2489ead4ee
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@53fb7c37cf14343f14ed79e2fefbbb2489ead4ee
- name: Install node modules
run: yarn install --immutable
- run: yarn ng-dev perf workflows --name ${{ matrix.workflow }}
7 changes: 7 additions & 0 deletions .ng-dev/dx-perf-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
workflows:
build-cli:
name: Build cli
prepare:
- bazel clean
workflow:
- bazel build //packages/angular/cli:npm_package
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@angular/forms": "19.0.0",
"@angular/localize": "19.0.0",
"@angular/material": "19.0.0",
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#9ce48789f423d72fb6b8d766b63b7b6611bc9e80",
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#0004779f2460c3b030b056e9f4f2c5e921e11039",
"@angular/platform-browser": "19.0.0",
"@angular/platform-browser-dynamic": "19.0.0",
"@angular/platform-server": "19.0.0",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ __metadata:
"@angular/forms": "npm:19.0.0"
"@angular/localize": "npm:19.0.0"
"@angular/material": "npm:19.0.0"
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#9ce48789f423d72fb6b8d766b63b7b6611bc9e80"
"@angular/ng-dev": "https://github.com/angular/dev-infra-private-ng-dev-builds.git#0004779f2460c3b030b056e9f4f2c5e921e11039"
"@angular/platform-browser": "npm:19.0.0"
"@angular/platform-browser-dynamic": "npm:19.0.0"
"@angular/platform-server": "npm:19.0.0"
Expand Down Expand Up @@ -850,9 +850,9 @@ __metadata:
languageName: node
linkType: hard

"@angular/ng-dev@https://github.com/angular/dev-infra-private-ng-dev-builds.git#9ce48789f423d72fb6b8d766b63b7b6611bc9e80":
version: 0.0.0-7a4326af255661a5c0d3fe44fabac5ff36585fad
resolution: "@angular/ng-dev@https://github.com/angular/dev-infra-private-ng-dev-builds.git#commit=9ce48789f423d72fb6b8d766b63b7b6611bc9e80"
"@angular/ng-dev@https://github.com/angular/dev-infra-private-ng-dev-builds.git#0004779f2460c3b030b056e9f4f2c5e921e11039":
version: 0.0.0-01c8c16f830d02110c28640aea16f145a7937080
resolution: "@angular/ng-dev@https://github.com/angular/dev-infra-private-ng-dev-builds.git#commit=0004779f2460c3b030b056e9f4f2c5e921e11039"
dependencies:
"@octokit/rest": "npm:21.0.2"
"@types/semver": "npm:^7.3.6"
Expand All @@ -866,7 +866,7 @@ __metadata:
yaml: "npm:2.6.1"
bin:
ng-dev: ./bundles/cli.mjs
checksum: 10c0/c9cc13c407c9adbc3308d897417f874f50172b318df56b0a9226d27237505fc762101ea719462aeb1f19505521fa474339c3baad8e9a7dc96852c2e1b589ee4b
checksum: 10c0/06103a9e62e0f21e2c7784efffb47e9a035a2be017e1c6c6c51f87417bc55fd79ccb7ba9d96a942b04635dbe8aab849355d97a1dd68861587a52ad8d1647ef77
languageName: node
linkType: hard

Expand Down