Skip to content

app routes room $roomName summary: add combined Coryat #467

app routes room $roomName summary: add combined Coryat

app routes room $roomName summary: add combined Coryat #467

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request: {}
permissions:
actions: write
contents: read
jobs:
test:
name: πŸ§ͺ Test
runs-on: ubuntu-latest
steps:
- name: πŸ›‘ Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: βŽ” Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: πŸ“₯ Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: πŸ”¬ Lint
run: npm run lint
- name: πŸ”Ž Type check
run: npm run typecheck
- name: ⚑ Run vitest
run: npm run test
cypress:
name: ⚫️ Cypress
runs-on: ubuntu-latest
steps:
- name: πŸ›‘ Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: πŸ„ Copy test env vars
run: cp .env.example .env
- name: βŽ” Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: πŸ“₯ Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: πŸ›  Setup Database
# db:start only starts the kong and postgrest containers.
run: npm run db:start
- name: βš™οΈ Build
run: npm run build
- name: 🌳 Cypress run
uses: cypress-io/github-action@v5
with:
# TODO: use npm start instead
start: npm run dev
wait-on: "http://localhost:8811"
env:
CYPRESS_IS_CI: "true"
PORT: "8811"
BASE_URL: "http://localhost:8811"
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}