2024-07-02 21:38:05 +02:00
|
|
|
name: TestDriver.ai Regression Testing - Waveterm
|
2024-02-28 04:38:16 +01:00
|
|
|
on:
|
2024-05-02 23:13:32 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
schedule:
|
|
|
|
- cron: 0 21 * * *
|
|
|
|
workflow_dispatch: null
|
|
|
|
|
2024-04-30 21:37:22 +02:00
|
|
|
permissions:
|
2024-05-02 23:13:32 +02:00
|
|
|
contents: read # To allow the action to read repository contents
|
|
|
|
pull-requests: write # To allow the action to create/update pull request comments
|
2024-02-28 04:38:16 +01:00
|
|
|
|
|
|
|
jobs:
|
2024-07-02 21:38:05 +02:00
|
|
|
test:
|
|
|
|
name: "TestDriver"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: dashcamio/testdriver@main
|
|
|
|
id: testdriver
|
|
|
|
with:
|
|
|
|
key: ${{secrets.DASHCAM_API}}
|
2024-08-28 03:13:38 +02:00
|
|
|
os: mac
|
2024-07-02 21:38:05 +02:00
|
|
|
prerun: |
|
|
|
|
cd ~/actions-runner/_work/testdriver/testdriver/
|
|
|
|
brew install go
|
|
|
|
brew tap scripthaus-dev/scripthaus
|
|
|
|
brew install corepack
|
|
|
|
brew install scripthaus
|
|
|
|
corepack enable
|
|
|
|
yarn install
|
|
|
|
scripthaus run build-backend
|
|
|
|
echo "Yarn"
|
|
|
|
yarn
|
|
|
|
echo "Rebuild"
|
|
|
|
scripthaus run electron-rebuild
|
|
|
|
echo "Webpack"
|
|
|
|
scripthaus run webpack-build
|
|
|
|
echo "Starting Electron"
|
|
|
|
scripthaus run electron 1>/dev/null 2>&1 &
|
|
|
|
echo "Electron Done"
|
2024-09-13 23:43:26 +02:00
|
|
|
npm rebuild testdriverai -g
|
2024-07-02 21:38:05 +02:00
|
|
|
exit
|
|
|
|
prompt: |
|
2024-09-12 23:27:34 +02:00
|
|
|
1. /run /testdriver/theme.yml
|