Skip to content

Commit

Permalink
ok lets try this
Browse files Browse the repository at this point in the history
  • Loading branch information
chottuthejimmy committed Nov 25, 2024
1 parent 90bca15 commit 81e0763
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/testdriver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: TestDriver.ai

on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:

jobs:
test:
name: "TestDriver"
runs-on: ubuntu-latest
steps:
- uses: testdriverai/action@main
with:
key: ${{secrets.TESTDRIVER_API_KEY}}
prompt: |
1. /run testdriver/test.yml
prerun: |
cd $env:TEMP
npm init -y
npm install dashcam-chrome
Start-Process "C:/Program Files/Google/Chrome/Application/chrome.exe" -ArgumentList "--start-maximized", "--load-extension=$(pwd)/node_modules/dashcam-chrome/build", "${{ env.LOCALHOST }}"
exit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_COLOR: "3"
LOCALHOST: "http://172.31.14.220:8080"
6 changes: 6 additions & 0 deletions testdriver/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 4.1.9
steps:
- prompt: check if the page is loaded
commands:
- command: assert
expect: The text "Welcome to ngix" is present

0 comments on commit 81e0763

Please sign in to comment.