From 8cbf5523a001654d76ed230c8b17c20d6f289487 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Mon, 18 Nov 2024 16:59:53 +0000 Subject: [PATCH] ci: move performance tracking job into its own workflow Move the performance tracking job into its own workflow instead of the primary CI job --- .github/workflows/ci.yml | 16 ---------------- .github/workflows/perf.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/perf.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47ccfac95..38329908e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,19 +71,3 @@ jobs: - uses: ./github-actions/bazel/setup - run: yarn install --immutable - run: yarn bazel test --sandbox_writable_path="$HOME/Library/Application Support" --test_tag_filters=macos --build_tests_only -- //... - - workflow-perf: - timeout-minutes: 30 - runs-on: ubuntu-latest - steps: - # Because the checkout and setup node action is contained in the dev-infra repo, we must - # checkout the repo to be able to run the action we have created. Other repos will skip - # this step. - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: ./github-actions/npm/checkout-and-setup-node - - uses: ./github-actions/bazel/setup - - run: yarn install --immutable - - run: yarn ng-dev perf workflows --json - # Always run this step to ensure that the job always is successful - - if: ${{ always() }} - run: exit 0 diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml new file mode 100644 index 000000000..7f4f0e857 --- /dev/null +++ b/.github/workflows/perf.yml @@ -0,0 +1,26 @@ +name: Performance Tracking + +on: + push: + branches: + - main + +permissions: {} + +defaults: + run: + shell: bash + +jobs: + workflow-perf: + timeout-minutes: 30 + runs-on: ubuntu-latest + steps: + # Because the checkout and setup node action is contained in the dev-infra repo, we must + # checkout the repo to be able to run the action we have created. Other repos will skip + # this step. + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: ./github-actions/npm/checkout-and-setup-node + - uses: ./github-actions/bazel/setup + - run: yarn install --immutable + - run: yarn ng-dev perf workflows --json