Skip to content

updated test server #193

updated test server

updated test server #193

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master, dev]
name: playwright-test
jobs:
playwright-test:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install dependencies
run: npm ci --prefix frontend
- name: Compile
run: npm run build:deploy --prefix frontend
- name: Compile & Start
run: Rscript -e 'source("dev/start_for_tests.R")' &
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: frontend
- name: Run Playwright tests
run: npx playwright test
working-directory: frontend
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: frontend/playwright-report/
retention-days: 30