From e26fc99a8c8c0fbbafc46c7dce4b1ef68be9044f Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Tue, 10 Sep 2024 15:01:45 -0500 Subject: [PATCH 1/4] test minimial --- .github/workflows/testdriver.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/testdriver.yml b/.github/workflows/testdriver.yml index 0f3ea84..79ea233 100644 --- a/.github/workflows/testdriver.yml +++ b/.github/workflows/testdriver.yml @@ -12,7 +12,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: testdriverai/action@main - version: v4.0.0 key: ${{secrets.TESTDRIVER_API_KEY}} with: prompt: | From 84a80e8bcddc7f8ecfd7696d74c1aa617ede88bc Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Tue, 10 Sep 2024 15:02:32 -0500 Subject: [PATCH 2/4] move key to correct place --- .github/workflows/testdriver.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testdriver.yml b/.github/workflows/testdriver.yml index 79ea233..ef40e41 100644 --- a/.github/workflows/testdriver.yml +++ b/.github/workflows/testdriver.yml @@ -12,8 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: testdriverai/action@main - key: ${{secrets.TESTDRIVER_API_KEY}} with: + key: ${{secrets.TESTDRIVER_API_KEY}} prompt: | 1. /run /Users/ec2-user/actions-runner/_work/testdriver/testdriver/testdriver/test.yml env: From 0febd57ce52eb086434215adcfd7a2d1794e12a9 Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Tue, 10 Sep 2024 15:17:10 -0500 Subject: [PATCH 3/4] test --- .github/workflows/testdriver.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/testdriver.yml b/.github/workflows/testdriver.yml index ef40e41..d10bbb8 100644 --- a/.github/workflows/testdriver.yml +++ b/.github/workflows/testdriver.yml @@ -14,8 +14,15 @@ jobs: - uses: testdriverai/action@main with: key: ${{secrets.TESTDRIVER_API_KEY}} + website_url: "https://example.com" prompt: | 1. /run /Users/ec2-user/actions-runner/_work/testdriver/testdriver/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", "${{ inputs.website_url }}" + exit env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} FORCE_COLOR: "3" From 8e5c675610da39029e481bae9ede12968a551e7d Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Tue, 10 Sep 2024 15:18:00 -0500 Subject: [PATCH 4/4] use env var instead --- .github/workflows/testdriver.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testdriver.yml b/.github/workflows/testdriver.yml index d10bbb8..812f66c 100644 --- a/.github/workflows/testdriver.yml +++ b/.github/workflows/testdriver.yml @@ -14,15 +14,15 @@ jobs: - uses: testdriverai/action@main with: key: ${{secrets.TESTDRIVER_API_KEY}} - website_url: "https://example.com" prompt: | 1. /run /Users/ec2-user/actions-runner/_work/testdriver/testdriver/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", "${{ inputs.website_url }}" + Start-Process "C:/Program Files/Google/Chrome/Application/chrome.exe" -ArgumentList "--start-maximized", "--load-extension=$(pwd)/node_modules/dashcam-chrome/build", "${{ env.WEBSITE_URL }}" exit env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} FORCE_COLOR: "3" + WEBSITE_URL: "https://example.com" # Define the website URL here