Skip to content

Commit fc567ab

Browse files
committed
ci: update actions files
1 parent adfc3c2 commit fc567ab

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/actions/setup-environment/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runs:
66
- name: Setup Node.js
77
uses: actions/setup-node@v4
88
with:
9-
node-version: 22.x
9+
node-version: 24.x
1010

1111
- name: Setup pnpm
1212
uses: pnpm/action-setup@v4
@@ -17,4 +17,4 @@ runs:
1717

1818
- name: Generate Prisma Client (types only)
1919
shell: bash
20-
run: pnpm exec prisma generate
20+
run: pnpm exec svelte-kit sync && pnpm exec prisma generate

.github/workflows/main-workflow.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
jobs:
1414
lint:
1515
runs-on: ubuntu-latest
16+
env:
17+
DATABASE_URL: 'postgresql://postgres:postgres@localhost:5432/postgres'
1618
steps:
1719
- uses: actions/checkout@v4
1820
- uses: ./.github/actions/setup-environment
@@ -21,6 +23,10 @@ jobs:
2123

2224
playwright_tests:
2325
runs-on: ubuntu-latest
26+
env:
27+
DATABASE_URL: 'postgresql://postgres:postgres@localhost:5432/postgres'
28+
AUTH_GOOGLE_ID: ${{ secrets.AUTH_GOOGLE_ID }}
29+
AUTH_GOOGLE_SECRET: ${{ secrets.AUTH_GOOGLE_SECRET }}
2430
services:
2531
postgres:
2632
image: postgres:latest
@@ -40,9 +46,6 @@ jobs:
4046
- uses: actions/checkout@v4
4147
- uses: ./.github/actions/setup-environment
4248

43-
- name: Set DATABASE_URL
44-
run: echo "DATABASE_URL=postgresql://postgres:postgres@localhost:5432/defaultdb?sslmode=disable" >> .env
45-
4649
- name: Initialize database schema
4750
run: |
4851
pnpm exec prisma migrate deploy
@@ -68,7 +71,3 @@ jobs:
6871
name: playwright-report
6972
path: playwright-report/
7073
retention-days: 30
71-
72-
env:
73-
AUTH_GOOGLE_ID: ${{ secrets.AUTH_GOOGLE_ID }}
74-
AUTH_GOOGLE_SECRET: ${{ secrets.AUTH_GOOGLE_SECRET }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
test-results
22
node_modules
3+
.pnpm-store
34

45
# Output
56
.output

prisma.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default defineConfig({
55
schema: 'prisma',
66
migrations: {
77
path: 'prisma/migrations',
8-
seed: 'tsx prisma/seed.ts'
8+
seed: 'tsx prisma/seed/seed.ts'
99
},
1010
datasource: {
1111
url: env('DATABASE_URL')

0 commit comments

Comments
 (0)