Skip to content

Allure report

Allure report #40

Workflow file for this run

name: playwright-allure-report
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
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]"
# ! create a new branch first
# - name: Create and push `allure-report-gh` branch
# run: |
# git checkout -b allure-report-gh
- name: Get Allure history
uses: actions/checkout@v3
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
- 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: gh-pages
allure_report: allure-report
#! do I have such a folder?
# allure_history: allure-history
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: gh-pages
# PUBLISH_DIR: allure-report
PUBLISH_DIR: allure-report