From 8de6dd4593b0670ad6dd7e83e3b5c479fdb4b721 Mon Sep 17 00:00:00 2001 From: ethangardner Date: Fri, 20 Dec 2024 13:43:38 -0500 Subject: [PATCH] add artifacts for build --- .github/workflows/_validate.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/_validate.yml b/.github/workflows/_validate.yml index e4d6be7f..afa6e0c1 100644 --- a/.github/workflows/_validate.yml +++ b/.github/workflows/_validate.yml @@ -61,16 +61,26 @@ jobs: run: pnpm dlx playwright@${{ inputs.playwright_version }} install --with-deps if: steps.playwright-cache.outputs.cache-hit != 'true' - # While most of the test suite is self-contained, the tests for the demo - # servers require a prod build of @atj/server. - name: Build run: pnpm build - - name: Spotlight performance budget - run: pnpm --filter @atj/spotlight size:ci + - name: Make directory for build artifacts + run: mkdir -p output/build-artifacts - - name: Design performance budget - run: pnpm --filter @atj/design size:ci + + - name: Spotlight app performance budget + run: pnpm --filter @atj/spotlight size:ci > output/build-artifacts/spotlight-size-output.txt + + - name: Design package performance budget + run: pnpm --filter @atj/design size:ci > output/build-artifacts/design-size-output.txt + + - name: Upload size:ci results + uses: actions/upload-artifact@v4 + with: + name: size-limit-results + path: | + output/build-artifacts/spotlight-size-output.txt + output/build-artifacts/design-size-output.txt - name: Lint source code shell: bash