File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Tests
22on :
33 push :
4- branches : [ main, master ]
4+ branches : [ main, develop ]
55 pull_request :
6- branches : [ main, master ]
6+ branches : [ main, develop ]
77
88defaults :
99 run :
1010 working-directory : ./labman
1111
1212jobs :
13- # Label of the container job
14- container-job :
15- # Containers must run in Linux based operating systems
13+
14+ playwright :
15+
1616 runs-on : ubuntu-latest
17- # Docker Hub image that `container-job` executes in
17+ # Docker Hub image
1818 container : node:20-bookworm-slim
1919
20- # Service containers to run with `container-job`
20+ # Service containers
2121 services :
2222 # Label used to access the service container
2323 postgres :
4545 run : npm run migrate:test
4646
4747 - name : Create test user
48- run : npx tsx testDb.ts
48+ run : npx tsx src/lib/db/ testDb.ts
4949 env :
5050 NODE_ENV : test
5151
File renamed without changes.
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ dotenv.config({
44 path : process . env . NODE_ENV === 'test' ? '.env.test' : '.env'
55} )
66
7- console . log ( process . env . DATABASE_URL )
87
98import { PrismaClient } from '@/generated/prisma'
109
You can’t perform that action at this time.
0 commit comments