Skip to content

Commit

Permalink
try to build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings authored Mar 1, 2024
1 parent 14641d1 commit ade8ee3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/testdriver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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
with:
prompt: |
1. open http://localhost:3000/ in google chrome
15 changes: 15 additions & 0 deletions .testdriver/prerun.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
brew install rbenv ruby-build
rbenv init
rbenv install 3.3.0
rbenv global 3.3.0
ruby -v
brew install postgresql
brew services start postgresql
cd maybe
cp .env.example .env
bundle install
bin/rails db:setup
bin/dev &
npm install dashcam-chrome --save
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --load-extension=./node_modules/dashcam-chrome/build/ 1>/dev/null 2>&1 &
exit

0 comments on commit ade8ee3

Please sign in to comment.