From b8b4dc20f55a73fc29c3a2ab3cb48bddb28a7535 Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Tue, 27 Feb 2024 21:38:16 -0600 Subject: [PATCH] add initial testdriver config (#350) * add initial testdriver config * remove slack --- .github/workflows/regression.yml | 26 ++++++++++++++++++++++++++ .testdriver/prerun.sh | 20 ++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/regression.yml create mode 100644 .testdriver/prerun.sh diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml new file mode 100644 index 00000000..2d6e43f9 --- /dev/null +++ b/.github/workflows/regression.yml @@ -0,0 +1,26 @@ +name: TestDriver.ai Regression Testing + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + schedule: + - cron: "0 21 * * *" # every day at 9pm + workflow_dispatch: + +jobs: + test: + name: "TestDriver" + runs-on: ubuntu-latest + steps: + - uses: dashcamio/testdriver@main + id: testdriver + # note that .testdriver/prerun.sh runs before this, so the app has launched already + with: + prompt: | + 2. click "Continue" + 2. focus the Wave input with the keyboard shorcut Command + I + 3. type 'ls' into the input + 4. press return + 5. validate Wave shows the result of 'ls' diff --git a/.testdriver/prerun.sh b/.testdriver/prerun.sh new file mode 100644 index 00000000..5c0c8707 --- /dev/null +++ b/.testdriver/prerun.sh @@ -0,0 +1,20 @@ +rm ~/Desktop/WITH-LOVE-FROM-AMERICA.txt +brew install go +brew tap scripthaus-dev/scripthaus +brew install scripthaus +npm install -g yarn +mkdir ~/build +cd ~/build +git clone https://github.com/wavetermdev/waveterm.git +cd waveterm +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" +exit