mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
TestDriver.ai: Add comments to PRs (#498)
This commit is contained in:
parent
e6df2c216d
commit
c53e0a99f6
33
.github/workflows/regression.yml
vendored
33
.github/workflows/regression.yml
vendored
@ -1,22 +1,26 @@
|
|||||||
name: TestDriver.ai Regression Testing (test)
|
name: TestDriver.ai Regression Testing
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches:
|
||||||
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches:
|
||||||
|
- main
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 21 * * *" # every day at 9pm
|
- cron: 0 21 * * *
|
||||||
workflow_dispatch:
|
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:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: "TestDriver"
|
name: TestDriver
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: dashcamio/testdriver@main
|
- uses: dashcamio/testdriver@main
|
||||||
id: testdriver
|
id: testdriver
|
||||||
# note that .testdriver/prerun.sh runs before this, so the app has launched already
|
|
||||||
with:
|
with:
|
||||||
version: v2.9.4
|
version: v2.9.4
|
||||||
prerun: |
|
prerun: |
|
||||||
@ -38,8 +42,21 @@ jobs:
|
|||||||
echo "Electron Done"
|
echo "Electron Done"
|
||||||
exit
|
exit
|
||||||
prompt: |
|
prompt: |
|
||||||
|
1. click "Continue"
|
||||||
2. click "Create new tab"
|
2. click "Create new tab"
|
||||||
2. focus the Wave input with the keyboard shorcut Command + I
|
2. focus the Wave input with the keyboard shorcut Command + I
|
||||||
3. type 'ls' into the input
|
3. type 'ls' into the input
|
||||||
4. press return
|
4. press return
|
||||||
5. validate Wave shows the result of 'ls'
|
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
|
Loading…
Reference in New Issue
Block a user