TestDriver.ai: Add comments to PRs (#498)

This commit is contained in:
Ian Jennings 2024-04-30 14:37:22 -05:00 committed by GitHub
parent e6df2c216d
commit c53e0a99f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,22 +1,26 @@
name: TestDriver.ai Regression Testing (test)
name: TestDriver.ai Regression Testing
on:
push:
branches: ["main"]
branches:
- main
pull_request:
branches: ["main"]
branches:
- main
schedule:
- cron: "0 21 * * *" # every day at 9pm
workflow_dispatch:
- cron: 0 21 * * *
workflow_dispatch: null
permissions:
contents: read # To allow the action to read repository contents
pull-requests: write # To allow the action to create/update pull request comments
jobs:
test:
name: "TestDriver"
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:
version: v2.9.4
prerun: |
@ -38,8 +42,21 @@ jobs:
echo "Electron Done"
exit
prompt: |
1. click "Continue"
2. click "Create new tab"
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'
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.summary }}
reactions: |
+1
-1