chore: first commit
This commit is contained in:
41
.github/workflows/monocart.yml
vendored
Normal file
41
.github/workflows/monocart.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
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
|
||||
Reference in New Issue
Block a user