mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
* add setup tests * continue, even on error * add build:packages * add automated branch for setup testing * add delay * combine commands * rollback * update README * use action to run in background * try running in foreground for testing * set shell * check if running codegen before works * fix quetzal file missing * swap the order * use background action * fix * try this instead * modify readme * add sleep * raise the timeout * run on faster machine * use jarvus instead * Update packages/stack/scripts/merge-quetzal-translations.ts Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com> * Update README.md Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com> * fix run on all branches * Update .github/workflows/setup-tests.yaml Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com> --------- Co-authored-by: root <TheCactusBlue> Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
52 lines
954 B
YAML
52 lines
954 B
YAML
name: "Run setup tests"
|
|
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
- main
|
|
|
|
env:
|
|
SHELL: /usr/bin/bash
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubicloud-standard-8
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Node.js v20
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v3
|
|
with:
|
|
version: 9.1.2
|
|
|
|
- name: Install packages
|
|
run: pnpm install
|
|
|
|
- run: pnpm run build:packages
|
|
- run: pnpm run codegen
|
|
- run: pnpm run start-deps
|
|
|
|
- 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
|
|
# - run: pnpm run dev & sleep 120
|
|
- run: pnpm test
|
|
|