From d86acf579517c10d6ef4b12b2601d03edf790211 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 21 Jan 2025 12:58:51 +0000 Subject: [PATCH] ci: run bundle size assertion outside of matrix (#30688) --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 181fa26860..36ee1a0687 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -188,6 +188,31 @@ jobs: - name: Test (runtime unit) run: pnpm test:runtime + test-size: + runs-on: ubuntu-latest + needs: + - build + + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - run: corepack enable + - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 + with: + node-version: lts/* + cache: "pnpm" + + - name: Install dependencies + run: pnpm install + + - name: Restore dist cache + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 + with: + name: dist + path: packages + + - name: Check bundle size + run: pnpm vitest run bundle + test-fixtures: runs-on: ${{ matrix.os }} needs: