2024-04-30 21:37:22 +02:00
|
|
|
name: TestDriver.ai Regression Testing
|
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-05-02 23:13:32 +02:00
|
|
|
test:
|
|
|
|
name: TestDriver
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: dashcamio/testdriver@main
|
|
|
|
id: testdriver
|
|
|
|
with:
|
|
|
|
version: v2.10.2
|
|
|
|
prerun: |
|
|
|
|
rm ~/Desktop/WITH-LOVE-FROM-AMERICA.txt
|
|
|
|
cd ~/actions-runner/_work/testdriver/testdriver/
|
|
|
|
brew install go
|
|
|
|
brew tap scripthaus-dev/scripthaus
|
2024-05-03 01:08:31 +02:00
|
|
|
brew install corepack
|
2024-05-02 23:13:32 +02:00
|
|
|
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"
|
|
|
|
exit
|
|
|
|
prompt: |
|
|
|
|
1. wait 10 seconds
|
|
|
|
1. click "Get Started"
|
|
|
|
1. validate that overlapping text does not appear in the application
|
|
|
|
1. focus the Wave input with the keyboard shorcut Command + I
|
|
|
|
1. type 'ls' into the input
|
|
|
|
1. press return
|
|
|
|
1. validate Wave shows the result of 'ls'
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- uses: peter-evans/create-or-update-comment@v4
|
|
|
|
if: ${{always()}}
|
|
|
|
with:
|
|
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
|
|
body: |
|
|
|
|
## TestDriver Summary
|
|
|
|
${{ steps.testdriver.outputs.markdown }}
|
|
|
|
${{ steps.testdriver.outputs.summary }}
|
|
|
|
reactions: |
|
|
|
|
+1
|
|
|
|
-1
|