From 0d5d3cc549daa701dd46041850f051f54da58003 Mon Sep 17 00:00:00 2001 From: Erin O'Connell Date: Mon, 15 Jun 2026 10:36:04 -0600 Subject: [PATCH] feature: add build step to verify that PR's build before merging into master --- .github/workflows/ci.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c18d07a..13fff9c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,12 +5,15 @@ on: types: [opened, reopened, synchronize] jobs: - Lint: + Build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 #v6.0.3 + with: + fetch-depth: 0 + lfs: true - name: Setup pnpm uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 #v6.0.9 @@ -22,7 +25,19 @@ jobs: cache: pnpm - name: Install dependencies - run: pnpm install --frozen-lockfile --dev + run: pnpm install --frozen-lockfile - name: Format check run: pnpm format:check + + - name: Restore cache from S3 + run: | + aws s3 cp s3://${{ secrets.STAGING_AWS_S3_BUCKET }}/cache/${{ github.event.repository.name }}/astro-cache.tar.zst astro-cache.tar.zst || true + tar -xf astro-cache.tar.zst --use-compress-program "zstdmt" || true + env: + AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }} + AWS_DEFAULT_REGION: ${{ secrets.STAGING_AWS_REGION }} + + - name: Build + run: pnpm build