test: Write backend tests for auth
, userQuests
, userSettings
, and users
#343
Workflow file for this run
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: | |
pull_request: | |
branches: main | |
paths: | |
- "convex/**" | |
- "tests/**" | |
- "src/**" | |
push: | |
branches: main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Typecheck | |
run: pnpm tsc -b | |
- name: Biome Linter, Formatter, and Import Sorter | |
run: pnpm biome ci | |
test: | |
name: Unit Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run tests | |
run: pnpm test | |
# Enable this once preview deploys are working and we can run on the preview directly | |
# e2e: | |
# name: End-to-end Test | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Setup PNPM | |
# uses: pnpm/action-setup@v4 | |
# - name: Setup Node | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: 20 | |
# cache: "pnpm" | |
# - name: Install dependencies | |
# run: pnpm install | |
# - name: Install Playwright | |
# run: pnpm exec playwright install --with-deps | |
# - name: Run Playwright end-to-end tests | |
# run: pnpm test:e2e | |
# - uses: actions/upload-artifact@v4 | |
# if: always() | |
# with: | |
# name: playwright-report | |
# path: playwright-report/ | |
# retention-days: 30 |