mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
Make restart-dev-and-test save backend logs
This commit is contained in:
@@ -36,12 +36,24 @@ jobs:
|
||||
- name: Install packages
|
||||
run: pnpm install
|
||||
|
||||
- name: Start dev environment
|
||||
run: pnpm run restart-dev-environment
|
||||
- name: Build packages
|
||||
run: pnpm run build:packages
|
||||
|
||||
- name: Generate code
|
||||
run: pnpm run codegen
|
||||
|
||||
- name: Restart dependencies
|
||||
run: pnpm run restart-deps
|
||||
|
||||
- name: Start dev server in background
|
||||
uses: JarvusInnovations/[email protected]
|
||||
with:
|
||||
run: pnpm run dev
|
||||
wait-on: |
|
||||
http://localhost:6902
|
||||
tail: true
|
||||
wait-for: 120s
|
||||
log-output-if: true
|
||||
|
||||
- name: Run tests
|
||||
run: pnpm run test run --reporter=verbose
|
||||
|
||||
- name: Print dev server logs
|
||||
run: cat dev-server.log.untracked.txt
|
||||
if: always()
|
||||
|
||||
@@ -35,12 +35,24 @@ jobs:
|
||||
- name: Install packages
|
||||
run: pnpm install
|
||||
|
||||
- name: Start dev environment
|
||||
run: pnpm run restart-dev-environment
|
||||
- name: Build packages
|
||||
run: pnpm run build:packages
|
||||
|
||||
- name: Generate code
|
||||
run: pnpm run codegen
|
||||
|
||||
- name: Restart dependencies
|
||||
run: pnpm run restart-deps
|
||||
|
||||
- name: Start dev server in background
|
||||
uses: JarvusInnovations/[email protected]
|
||||
with:
|
||||
run: pnpm run dev
|
||||
wait-on: |
|
||||
http://localhost:8102
|
||||
tail: true
|
||||
wait-for: 120s
|
||||
log-output-if: true
|
||||
|
||||
- name: Run tests
|
||||
run: pnpm run test run --reporter=verbose
|
||||
|
||||
- name: Print dev server logs
|
||||
run: cat dev-server.log.untracked.txt
|
||||
if: always()
|
||||
|
||||
Reference in New Issue
Block a user