bun #22
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 | |
| on: | |
| - push | |
| - pull_request | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| ci: | |
| name: check | |
| # Pin the version to avoid dependency installation issues | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.10 | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.17 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Restore workspace cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ${{ github.workspace }}/.turbo | |
| ${{ github.workspace }}/packages/*/tsconfig.tsbuildinfo | |
| ${{ github.workspace }}/packages/*/lib/tsconfig.tsbuildinfo | |
| ${{ github.workspace }}/site/tsconfig.tsbuildinfo | |
| ${{ github.workspace }}/site/.next/cache | |
| key: slate-workspace-cache-${{ runner.os }}-${{ hashFiles('bun.lock', 'turbo.json', 'packages/*/tsconfig*.json', 'site/tsconfig.json') }} | |
| - name: Run check | |
| run: bun run check:ci | |
| env: | |
| CI: true | |
| - name: Upload Playwright test results | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: test-results | |
| retention-days: 30 |