forked from stack-auth/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
34 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,10 +34,10 @@ jobs: | |
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Create .env.local file for stack-backend | ||
- name: Create .env.production.local file for stack-backend | ||
run: cp apps/backend/.env.development apps/backend/.env.production.local | ||
|
||
- name: Create .env.local file for stack-dashboard | ||
- name: Create .env.production.local file for stack-dashboard | ||
run: cp apps/dashboard/.env.development apps/dashboard/.env.production.local | ||
|
||
- name: Build stack-backend | ||
|
@@ -51,6 +51,11 @@ jobs: | |
- name: Initialize database | ||
run: pnpm run prisma -- migrate reset --force | ||
|
||
- name: Start stack-backend in background | ||
run: pnpm run start:backend & | ||
- name: Wait for stack-backend to start | ||
run: npx [email protected] http://localhost:8102 | ||
|
||
- name: Start stack-dashboard in background | ||
run: pnpm run start:dashboard & | ||
- name: Wait for stack-dashboard to start | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import dotenv from "dotenv"; | ||
|
||
export default function globalSetup() { | ||
dotenv.config({ | ||
path: [ | ||
".env.development.local", | ||
".env.local", | ||
".env.development", | ||
".env", | ||
], | ||
}); | ||
|
||
return () => {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import { defineConfig } from 'vitest/config' | ||
import react from '@vitejs/plugin-react' | ||
|
||
export default defineConfig({ | ||
plugins: [react()], | ||
test: { | ||
environment: 'node', | ||
testTimeout: 20_000, | ||
globalSetup: './tests/global-setup.ts', | ||
}, | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.