Skip to content

[TEST]Test encoding issue fix #18

[TEST]Test encoding issue fix

[TEST]Test encoding issue fix #18

Workflow file for this run

name: TestDriver.ai
on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:
jobs:
gather-markdown-files:
name: Gather Markdown Files
runs-on: ubuntu-latest
outputs:
markdown_files: ${{ steps.markdown_list.outputs.files }}
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Find all markdown files and extract filenames
id: markdown_list
run: |
FILES=$(ls ./testdriver/.generate/*.md)
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-markdown-files
runs-on: ubuntu-latest
strategy:
matrix:
markdown: ${{ fromJson(needs.gather-markdown-files.outputs.markdown_files) }}
fail-fast: false
name: ${{ matrix.markdown }} # Using just the filename
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Display filename being tested
run: |
echo "Running job for file: ${{ matrix.markdown }}"
- name: Read file content into environment variable
id: read_file
run: |
CONTENT=$(cat ./testdriver/.generate/${{ matrix.markdown }})
echo "MARKDOWN_CONTENT<<EOF" >> $GITHUB_ENV
echo "$CONTENT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- uses: testdriverai/action@main
with:
key: ${{ secrets.TESTDRIVER_API_KEY }}
branch: yassine/fix-encoding-issue
prompt: ${{ env.MARKDOWN_CONTENT }} # Use the content of the file from the environment
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.WEBSITE_URL }}"
exit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_COLOR: "3"
WEBSITE_URL: "https://pubnub.com"