mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Make restart-dev-and-test save backend logs
This commit is contained in:
parent
f27a5902c7
commit
0ebca10091
@ -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/background-action@v1.0.7
|
||||
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()
|
||||
|
||||
24
.github/workflows/restart-dev-and-test.yaml
vendored
24
.github/workflows/restart-dev-and-test.yaml
vendored
@ -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/background-action@v1.0.7
|
||||
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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user