Skip to content

Merge pull request #164 from TheMineWay/dependabot/npm_and_yarn/docs/… #247

Merge pull request #164 from TheMineWay/dependabot/npm_and_yarn/docs/…

Merge pull request #164 from TheMineWay/dependabot/npm_and_yarn/docs/… #247

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: 📦 Install dependencies
run: |
cd docs
npm ci
- name: 🔨 Build Docusaurus
run: |
cd docs
npm run build
env:
CI: true
- name: 🔄️ Start Docusaurus server
run: |
cd docs
npm run serve &
env:
NODE_ENV: development
- name: 🕑 Wait
run: sleep 5
- name: 💻 Install Playwright Browsers
run: |
cd docs
npx playwright install --with-deps
- name: 🏃‍♂️‍➡️ Run Playwright tests
run: |
cd docs
npx playwright test
env:
NODE_ENV: development
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: docs/playwright-report/
retention-days: 30