feat: Add cap so template #10
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: PR Build | |
| on: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| services: | |
| typesense: | |
| image: typesense/typesense:29.0 | |
| env: | |
| TYPESENSE_API_KEY: typesense | |
| TYPESENSE_DATA_DIR: /data | |
| ports: | |
| - 8108:8108 | |
| options: --tmpfs /data | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Wait for Typesense | |
| run: | | |
| for i in {1..20}; do | |
| curl -sf http://127.0.0.1:8108/health && break | |
| echo "Waiting for Typesense... ($i/20)" | |
| sleep 2 | |
| done | |
| - name: Validate templates | |
| run: bun run validate | |
| - name: Build | |
| run: bun run build | |
| env: | |
| TYPESENSE_API_KEY: typesense | |
| TYPESENSE_HOST: 127.0.0.1 |