Skip to content

quick fix

quick fix #53

Workflow file for this run

name: playwright-allure-report
on:
push:
branches: [main, test-ci]
pull_request:
branches: [main]
jobs:
test:
name: Run end-to-end tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
allure:
name: Generate Allure Report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure Git
run: |
git config user.name "Radomyr Horban"
git config user.email "[email protected]"
- name: Create and push `allure-report-page` branch
run: |
git checkout -b allure-report-page
git push origin allure-report-page
- name: Get Allure history
uses: actions/checkout@v3
if: always()
continue-on-error: true
with:
ref: allure-report-page
path: allure-report-page
- name: Allure Report action from marketplace
uses: simple-elf/allure-report-action@master
if: always()
id: allure-report
with:
allure_results: allure-results
gh_pages: allure-report-page
allure_report: allure-report
allure_history: last-history
- name: Deploy report to GitHub Pages
if: always()
uses: peaceiris/actions-gh-pages@v3
with:
PERSONAL_TOKEN: ${{secrets.GITHUB_TOKEN}}
PUBLISH_BRANCH: allure-report-page
PUBLISH_DIR: last-history