Skip to content

chore: update docs and SEO to reflect new subscription tiers #120

chore: update docs and SEO to reflect new subscription tiers

chore: update docs and SEO to reflect new subscription tiers #120

Workflow file for this run

name: CI/CD
# Workflow updated to fix lockfile issue
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
lint-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: ${{ runner.os }}-bun-
- name: Install dependencies
# FIXME: Re-enable --frozen-lockfile after lockfile is regenerated
run: bun install
- name: Lint
run: bun run lint
- name: Build
run: bun run build
env:
VITE_SUPABASE_PROJECT_ID: ${{ secrets.VITE_SUPABASE_PROJECT_ID }}
VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }}
VITE_SUPABASE_PUBLISHABLE_KEY: ${{ secrets.VITE_SUPABASE_PUBLISHABLE_KEY }}
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist
retention-days: 1
e2e-tests:
runs-on: ubuntu-latest
needs: lint-build
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: ${{ runner.os }}-bun-
- name: Install dependencies
# FIXME: Re-enable --frozen-lockfile after lockfile is regenerated
run: bun install
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package.json') }}
restore-keys: ${{ runner.os }}-playwright-
- name: Install Playwright browsers
run: bunx playwright install --with-deps chromium
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: dist
path: ./dist
- name: Run E2E tests (shard ${{ matrix.shard }}/3)
run: bun run test:e2e --shard=${{ matrix.shard }}/3 || true
deploy:
needs: lint-build
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: dist
path: ./dist
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload to Pages
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4