chore(docs): add Hayden Law to contributors #43
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: CI Pipeline | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: Linting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Biome | |
| uses: biomejs/setup-biome@v2 | |
| - name: Run Biome | |
| run: biome ci . --error-on-warnings | |
| setup: | |
| name: Setup | |
| needs: [lint] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Check if node_modules cache exists | |
| id: cache-check | |
| uses: actions/cache@v4 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| lookup-only: true | |
| - name: Setup Node.js | |
| if: steps.cache-check.outputs.cache-hit != 'true' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Setup pnpm | |
| if: steps.cache-check.outputs.cache-hit != 'true' | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: latest | |
| run_install: false | |
| - name: Install dependencies | |
| if: steps.cache-check.outputs.cache-hit != 'true' | |
| run: pnpm install --frozen-lockfile --ignore-scripts | |
| - name: Save node_modules cache | |
| if: steps.cache-check.outputs.cache-hit != 'true' | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| build: | |
| name: Build Application | |
| runs-on: ubuntu-latest | |
| needs: [lint, setup] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: latest | |
| run_install: false | |
| - name: Restore node_modules cache | |
| id: cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: ${{ runner.os }}-node_modules | |
| - name: Install dependencies if cache misses | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: pnpm install --frozen-lockfile --ignore-scripts | |
| - name: Restore Next.js cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .next/cache | |
| key: ${{ runner.os }}-nextjs-${{ hashFiles('src/**') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nextjs | |
| - name: Build Application | |
| env: | |
| PAYLOAD_SECRET: ${{ secrets.PAYLOAD_SECRET }} | |
| DATABASE_URI: ${{ secrets.DATABASE_URI }} | |
| run: pnpm build |