From e00550707992313f12644a38956c59c20a299f1e Mon Sep 17 00:00:00 2001 From: Pragadeesh122 Date: Thu, 26 Sep 2024 18:42:11 -0400 Subject: [PATCH 1/2] "test" --- IntegrationTests/.env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IntegrationTests/.env.example b/IntegrationTests/.env.example index e6d3a80..96c3d21 100644 --- a/IntegrationTests/.env.example +++ b/IntegrationTests/.env.example @@ -1,3 +1,3 @@ -#use docker for local development +#use docker for local development sd DATABASE_URL="postgresql://postgres:mysecretpassword@localhost:5432/postgres" \ No newline at end of file From 3933411c7afb395b55f327ccc2e2275e020b8974 Mon Sep 17 00:00:00 2001 From: Pragadeesh122 Date: Thu, 26 Sep 2024 19:23:27 -0400 Subject: [PATCH 2/2] updated workflow --- .github/workflows/test.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3156359..c90588f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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 @@ -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