forked from andreterron/mainframe
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.65 KB
/
testdriver.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: TestDriver.ai
on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:
jobs:
test:
name: "TestDriver"
runs-on: ubuntu-latest
steps:
- uses: testdriverai/action@main
with:
key: ${{secrets.TESTDRIVER_API_KEY}}
prompt: |
1. /run testdriver/test.yml
prerun: |
echo "installing pnpm"
npm install pnpm -g
echo "install turbo"
pnpm install turbo -g
echo "installing dependencies"
pnpm install
echo "installing dashcam-chrome"
npm install dashcam-chrome
echo "update broswerlist"
npx update-browserslist-db@latest
echo "generate env"
node scripts/generate-env.mjs
echo "build"
npm turbo run build --filter='!@mainframe-api/docs' --output-logs=errors-only --concurrency=1
echo "migrate db"
npm run db:migrate
echo "start server"
turbo run "@mainframe-api/node#serve" dev --env-mode=loose --filter='!@mainframe-api/node' --filter='!@mainframe-api/docs' --ui=tui
# echo "waiting for 500 seconds"
# sleep 500
exit 0
# Write-Output "Starting Chrome"
# Start-Process "C:/Program Files/Google/Chrome/Application/chrome.exe" -ArgumentList "--start-maximized", "--load-extension=$(pwd)/node_modules/dashcam-chrome/build", "${{ env.LOCALHOST }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_COLOR: "3"
LOCALHOST: "http://localhost:8744"
NODE_OPTIONS: "--max-old-space-size=8192"