Skip to content

Commit

Permalink
Tryingo to struct the workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusSanchez committed Jan 25, 2024
1 parent 64c2f88 commit 6257cd5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ jobs:
run-e2e-tests:
name: Run E2E Tests
runs-on: ubuntu-latest
env:
DATABASE_URL: "postgresql://docker:docker@localhost:8080/orange-db?schema=public"

services:
postgres:
Expand All @@ -25,13 +23,13 @@ jobs:
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'

- run: pnpm install
- run: pnpm prisma generate

- run: pnpm run pretest:e2e
- run: pnpm run test:e2e


env:
DATABASE_URL: "postgresql://docker:docker@localhost:8080/orange-db?schema=public"

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "tsx watch src/server.ts",
"test": "vitest run --dir src/use-cases",
"test:create-prisma-environment": "pnpm link ./prisma/vitest-environment-prisma",
"test:create-prisma-environment": "pnpm link ./packages/vitest-environment-prisma",
"test:install-prisma-environment": "pnpm link vitest-environment-prisma",
"test:watch": "vitest --dir src/use-cases",
"pretest:e2e": "run-s test:create-prisma-environment test:install-prisma-environment",
Expand Down
5 changes: 5 additions & 0 deletions packages/vitest-environment-prisma/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
environmentMatchGlobs: [['src/controller/**', 'prisma']],
environmentMatchGlobs: [['src/controller/**', 'packages/vitest-environment-prisma']],
},
})

0 comments on commit 6257cd5

Please sign in to comment.