forked from assistant-ui/assistant-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.29 KB
/
testdriver.yml
File metadata and controls
39 lines (36 loc) · 1.29 KB
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
name: TestDriver.ai
on:
workflow_run:
workflows: ["Changesets"]
types:
- completed
branches:
- main
jobs:
test:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: "TestDriver"
runs-on: ubuntu-latest
steps:
- uses: testdriverai/action@main
with:
key: ${{secrets.TESTDRIVER_API_KEY}}
prompt: |
1. /run testdriver/test.yml
prerun: |
cd $env:TEMP
echo "my-app" | npx assistant-ui create
cd my-app
npm install dashcam-chrome
echo "creating .env file and setting OPENAI_API_KEY"
Set-Content -Path ".env" -Value "OPENAI_API_KEY=${{env.OPENAI_API_KEY}}"
echo "starting dev server"
Start-Process -NoNewWindow -PassThru "npm" -ArgumentList "run", "dev"
echo "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_URL}}"
exit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_COLOR: "3"
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
LOCALHOST_URL: "http://localhost:3000"