From a5334655418d479d79f2a51e38bd8c9d26703a27 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Thu, 21 Nov 2024 18:24:42 +0000 Subject: [PATCH] ci: set up perf workflow job and create initial workflow Set up the initial workflow to build upon. --- .github/workflows/perf.yml | 42 +++++++++++++++++++++++++++++++++++ .ng-dev/dx-perf-workflows.yml | 7 ++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/workflows/perf.yml create mode 100644 .ng-dev/dx-perf-workflows.yml diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml new file mode 100644 index 000000000000..13fbce067b37 --- /dev/null +++ b/.github/workflows/perf.yml @@ -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 }} diff --git a/.ng-dev/dx-perf-workflows.yml b/.ng-dev/dx-perf-workflows.yml new file mode 100644 index 000000000000..910dafc572ba --- /dev/null +++ b/.ng-dev/dx-perf-workflows.yml @@ -0,0 +1,7 @@ +workflows: + build-cli: + name: Build cli + prepare: + - bazel clean + workflow: + - bazel build //packages/angular/cli:npm_package