steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- - uses: actions/cache@v5
- with:
- path: node_modules/
- key: bun-${{ hashFiles('bun.lock') }}
- restore-keys: |
- bun-
- name: Install dependencies
run: bun install --frozen-lockfile
- - name: Type check
- run: bun run typecheck
- - name: Run tests
- run: bun run test:run
- - uses: actions/cache@v5
- with:
- path: .astro-cache/assets/
- key: astro-images-${{ hashFiles('src/assets/**/*', 'content/**/*.gif', 'content/**/*.jpg', 'content/**/*.png', 'content/**/*.svg', 'content/**/*.webp') }}
- restore-keys: |
- astro-images-
- - uses: actions/cache@v5
- with:
- path: .og-cache/
- key: og-images-${{ hashFiles('content/**/*.md', 'content/**/*.mdx') }}
- restore-keys: |
- og-images-
- name: Build site pages
run: bun run build
- name: Build search index