Skip to content

test: Write unit tests for settings page and components (#290) #373

test: Write unit tests for settings page and components (#290)

test: Write unit tests for settings page and components (#290) #373

Workflow file for this run

name: CI
on:
pull_request:
branches: main
paths-ignore:
- ".changeset/**"
- ".husky/**"
- ".storybook/**"
- ".vscode/**"
- "docs/**"
- "public/**"
- "CHANGELOG.md"
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