Skip to content

Commit

Permalink
feat: better tests (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Dec 27, 2024
1 parent a94b000 commit c1f5c7f
Show file tree
Hide file tree
Showing 22 changed files with 862 additions and 1,840 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
workflow_dispatch:
jobs:
run-tests:
if: ${{ !contains(github.head_ref, 'ci:') && !contains(github.ref, 'ci/') }}
runs-on: ubuntu-latest
services:
postgres:
Expand All @@ -26,7 +25,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
cache: "npm"
- name: Setup application
run: npm ci
Expand All @@ -50,14 +49,20 @@ jobs:
npx wait-on http://localhost:3333/v1/health http://0.0.0.0:8080/
- name: Run tests
run: npx playwright test
run: npm run test
env:
BASE_URL: http://0.0.0.0:8080
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_db
JWT_SECRET: ${{ secrets.JWT_SECRET }}
APP_URL: http://0.0.0.0:8080
API_URL: http://0.0.0.0:3333
LUNARY_PUBLIC_KEY: 259d2d94-9446-478a-ae04-484de705b522
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
NEXT_PUBLIC_API_URL: http://0.0.0.0:3333

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
path: packages/e2e/playwright-report/
retention-days: 30
134 changes: 0 additions & 134 deletions e2e/utils/db.ts

This file was deleted.

Loading

0 comments on commit c1f5c7f

Please sign in to comment.