Files
savy-test-playwright/.github/workflows/monocart.yml
2026-01-19 08:54:54 +07:00

42 lines
875 B
YAML

name: Monocart Report
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps firefox
- name: Run tests
run: npx playwright test tests/api-command.spec.ts --project=firefox
continue-on-error: true
- name: Deploy report to GitHub Pages
if: always()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: monocart-report