diff --git a/.github/workflows/build-genai.yml b/.github/workflows/build-genai.yml index 535b44c75a..1f29fd15a0 100644 --- a/.github/workflows/build-genai.yml +++ b/.github/workflows/build-genai.yml @@ -39,10 +39,7 @@ jobs: - name: download ollama docker run: docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama - name: run test within scripts - run: yarn test:scripts --out-summary ./summary.txt --test-delay 10 - - name: Append summary.txt to $GITHUB_STEP_SUMMARY - run: | - cat packages/sample/summary.txt >> $GITHUB_STEP_SUMMARY + run: yarn test:scripts --out-summary $GITHUB_STEP_SUMMARY --test-delay 10 - name: Add comment to PR uses: actions/github-script@v5 if: github.event_name == 'pull_request' diff --git a/.github/workflows/genai-commander.yml b/.github/workflows/genai-commander.yml index c37b58012d..c272a1ee26 100644 --- a/.github/workflows/genai-commander.yml +++ b/.github/workflows/genai-commander.yml @@ -62,6 +62,12 @@ jobs: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} OPENAI_API_TYPE: ${{ secrets.OPENAI_API_TYPE }} OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }} + - name: start ollama + if: contains(github.event.comment.body, '/genai-test') + run: docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama + - name: run test within scripts + if: contains(github.event.comment.body, '/genai-test') + run: yarn test:scripts --out-summary $GITHUB_STEP_SUMMARY --test-delay 10 - name: Archive genai results if: always() uses: actions/upload-artifact@v4