Skip to content

Commit

Permalink
test mario kart lol
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings authored Mar 1, 2024
1 parent 8b08815 commit 7d53a3f
Show file tree
Hide file tree
Showing 2 changed files with 31 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:
branches: ["main"]
workflow_dispatch:

jobs:
test:
name: "TestDriver"
runs-on: ubuntu-latest
steps:
- uses: dashcamio/testdriver@main
id: testdriver
with:
prompt: |
1. open http://localhost:5173 in google chrome
1. click 'Launch'
1. press 'Enter'
1. click 'Keyboard'
1. click 'Confirm'
1. press the 'w' key to drive forward
1. press the 's' key to drive backward
1. while holding 'w', press 'a' to turn left
1. while holding 'w', press 'd' to turn right
1. while holding 'w', press 'e' to boost
3 changes: 3 additions & 0 deletions .testdriver/prerun.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npm install
npm run dev 1>/dev/null 2>&1 &
exit

0 comments on commit 7d53a3f

Please sign in to comment.