chore: add jsr badge #6
This file contains 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: | |
workflow_dispatch: | |
push: | |
merge_group: | |
pull_request: | |
paths-ignore: | |
- ".vscode/**" | |
- "**/*.md" | |
- ".github/ISSUE_TEMPLATE/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
TURBO_REMOTE_ONLY: true | |
jobs: | |
lint: | |
name: ⬣ Lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v4 | |
- name: π Setup Biome CLI | |
uses: biomejs/setup-biome@v2 | |
- name: π¬ Run Biome | |
run: biome ci . | |
typecheck: | |
name: Κ¦ Typecheck | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v4 | |
- name: π€ Install Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: π€ Install dependencies | |
run: bun install | |
- name: π Typecheck | |
run: bun typecheck | |
test: | |
name: "π§ͺ Test" | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [20, 22] | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v4 | |
- name: π€ Setup Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: π€ Install Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: π€ Install dependencies | |
run: bun install | |
- name: π Build Packages | |
run: bun run build | |
- name: π§ͺ Run Tests | |
run: bun run test --continue --filter='!./examples/*' | |
playwright: | |
name: "π§ͺ Playwright" | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
node-version: [20, 22] | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v4 | |
- name: π€ Install Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: π€ Setup Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: π€ Install dependencies | |
run: bun install | |
- name: π Build Packages | |
run: bun run build | |
- name: π€ Install Playwright browsers | |
run: bun playwright install --with-deps | |
working-directory: examples/playwright-sveltekit | |
- name: π§ͺ Run Playwright tests | |
run: bun run test:e2e --continue -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report-${{ matrix.node-version }} | |
path: examples/*/tests/report/ | |
retention-days: 30 |