Repository navigation
update Khanh's info #35
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Build | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| # Cancel in-progress runs for the same PR | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: "22" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Cache optimized images | |
| uses: actions/cache@v6 | |
| with: | |
| path: | | |
| public/optimized | |
| .cache/image-optimizer.json | |
| src/data/generated-image-manifest.json | |
| key: ${{ runner.os }}-images-v2-${{ hashFiles('public/team/**', 'public/uploads/**', 'scripts/optimize-all-images.ts', 'src/lib/image-widths.ts') }} | |
| restore-keys: | | |
| ${{ runner.os }}-images-v2- | |
| - name: Validate (read-only) | |
| run: pnpm check | |
| - name: Audit all dependencies | |
| run: pnpm audit:dependencies | |
| - name: Build for Cloudflare Workers | |
| run: pnpm build:worker |