Skip to content

Chore/allure report g pages hist #83

Chore/allure report g pages hist

Chore/allure report g pages hist #83

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@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
API_KEY: ${{ secrets.API_KEY }}
- name: Generate Allure Report
if: always()
run: npm run allure-report
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-test-results
path: test-results/
- uses: actions/upload-artifact@v3
if: always()
with:
name: allure-test-results
path: allure-report/
- name: Publish JUnit Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: 'junit-results/*.xml'
- name: Get Allure history
uses: actions/checkout@v2
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()
with:
allure_results: allure-results
allure_history: allure-history
keep_reports: 20
- name: "Publish test results"
uses: peaceiris/[email protected]
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: allure-report/
keep_files: true