dont build docs #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 dependencies" | |
npm 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 run build --filter='!@mainframe-api/docs' --ui=stream --output-logs=errors-only --concurrency=1 | |
echo "migrate db" | |
npm run db:migrate | |
echo "start server" | |
npm run dev | |
# 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" |