Skip to content

feat: add clerk integration in /next branch (#364) #46

feat: add clerk integration in /next branch (#364)

feat: add clerk integration in /next branch (#364) #46

Workflow file for this run

name: Main CI
on: [push, pull_request]
jobs:
main-ci:
runs-on: ubuntu-latest
environment: CI
env:
# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
NEXT_PUBLIC_CLERK_SIGN_IN_URL: '/sign-in'
NEXT_PUBLIC_CLERK_SIGN_UP_URL: '/sign-up'
NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL: '/app'
NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL: '/app'
# Upstash
UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }}
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install Dependencies
run: bun install
- name: Install Playwright Browsers
run: bun playwright install --with-deps
- name: Check Format
run: bun format:check
- name: Lint
run: bun lint
- name: Typecheck
run: bun typecheck
- name: Unit tests
run: bun test
- name: Build
run: bun run build
- name: Run Playwright tests
run: bun playwright test
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30