Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ on:
jobs:
test_vitest:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.files.*.path, 'vitest/')

defaults:
run:
working-directory: vitest
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -20,17 +21,16 @@ jobs:
node-version: 20

- name: Install dependencies
working-directory: vitest
run: yarn && yarn prisma generate

- name: Run tests
working-directory: vitest
run: yarn run test

integration_test:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.files.*.path, 'IntegrationTests/')

defaults:
run:
working-directory: IntegrationTests
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -45,7 +45,7 @@ jobs:
run: docker-compose version

- name: Copy .env.example to .env
run: cp ./IntegrationTests/.env.example ./IntegrationTests/.env
run: cp .env.example .env

- name: Run integration script
run: cd IntegrationTests && yarn run test:integration
run: npm run test:integration
2 changes: 1 addition & 1 deletion IntegrationTests/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#use docker for local development
#use docker for local development sd

DATABASE_URL="postgresql://postgres:mysecretpassword@localhost:5432/postgres"