Skip to content

try another unique string #49

try another unique string

try another unique string #49

name: TestDriver.ai / Regression
on:
push:
branches: ["main"]
pull_request:
jobs:
gather-test-files:
name: Gather Test Files
runs-on: ubuntu-latest
outputs:
test_files: ${{ steps.test_list.outputs.files }}
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Find all test files and extract filenames
id: test_list
run: |
FILES=$(ls ./testdriver/*.yml)
FILENAMES=$(basename -a $FILES)
FILES_JSON=$(echo "$FILENAMES" | jq -R -s -c 'split("\n")[:-1]')
echo "::set-output name=files::$FILES_JSON"
test:
needs: gather-test-files
runs-on: ubuntu-latest
strategy:
matrix:
test: ${{ fromJson(needs.gather-test-files.outputs.test_files) }}
fail-fast: true
name: ${{ matrix.test }}
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Display filename being tested
run: |
echo "Running job for file: ${{ matrix.test }}"
- uses: testdriverai/action@main
with:
key: ${{ secrets.TESTDRIVER_API_KEY }}
prompt: |
1. /run testdriver/onboarding.yml
1. /run testdriver/${{ matrix.test }}
prerun: |
Get-NetIPAddress -AddressFamily IPv6
# URL for the Arc browser installer
$installerUrl = "https://releases.arc.net/windows/ArcInstaller.exe"
# Location to save the installer
$installerPath = "$env:USERPROFILE\Downloads\ArcInstaller.exe"
# Download the Arc browser installer
Write-Host "Downloading Arc browser installer..."
Invoke-WebRequest -Uri $installerUrl -OutFile $installerPath
# Check if the download was successful
if (Test-Path $installerPath) {
Write-Host "Download successful. Running the installer..."
Start-Process -FilePath $installerPath -ArgumentList '/silent' -Wait
Start-Sleep -Seconds 10
} else {
Write-Host "Failed to download the Arc browser installer."
}
# Replace placeholder email with generated
(gc ./testdriver/onboarding.yml) -replace "[email protected]", '${{ github.run_id }}${{ github.run_attempt }}.${{ matrix.markdown }}@testdriver.ai' | sc -Force ./testdriver/onboarding.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_COLOR: "3"