Skip to content

Improve long-form chat reliability #24

Improve long-form chat reliability

Improve long-form chat reliability #24

Workflow file for this run

name: Pull Request Quality Checks
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
workflow_dispatch:
jobs:
run-tests:
name: Run Tests
runs-on: ubuntu-latest
continue-on-error: true
env:
POLLI_TOKEN: ${{ secrets.POLLI_TOKEN || secrets.VITE_POLLI_TOKEN || secrets.POLLINATIONS_TOKEN || secrets.VITE_POLLINATIONS_TOKEN }}
VITE_POLLI_TOKEN: ${{ secrets.VITE_POLLI_TOKEN || secrets.POLLI_TOKEN || secrets.VITE_POLLINATIONS_TOKEN || secrets.POLLINATIONS_TOKEN }}
POLLINATIONS_TOKEN: ${{ secrets.POLLINATIONS_TOKEN || secrets.POLLI_TOKEN || secrets.VITE_POLLINATIONS_TOKEN || secrets.VITE_POLLI_TOKEN }}
VITE_POLLINATIONS_TOKEN: ${{ secrets.VITE_POLLINATIONS_TOKEN || secrets.POLLINATIONS_TOKEN || secrets.VITE_POLLI_TOKEN || secrets.POLLI_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run Tests
run: npm test
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: pull-request-test-results
path: reports/test-results.json
if-no-files-found: warn
report-tests:
name: Report Tests Statuses
runs-on: ubuntu-latest
needs: run-tests
if: always()
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download test report
uses: actions/download-artifact@v4
continue-on-error: true
with:
name: pull-request-test-results
path: reports
- name: Report Tests Statuses
run: node tools/report-tests.mjs --title "Pull Request Test Results" --results reports/test-results.json