Skip to content

Commit

Permalink
ci: set up perf workflow job and create initial workflow
Browse files Browse the repository at this point in the history
Set up the initial workflow to build upon.
  • Loading branch information
josephperrott committed Nov 21, 2024
1 parent 1ded0b7 commit b53e25e
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 6 deletions.
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-adev:
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

0 comments on commit b53e25e

Please sign in to comment.