Updated YML file, README and package.json #62
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: playwright-allure-report | |
on: | |
push: | |
branches: [main, review-session] | |
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 | |
- name: Generate Allure Report | |
if: always() | |
run: npm run allure:generate | |
- uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: playwright-test-results | |
path: allure-results/ | |
- uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: allure-test-results | |
path: allure-report/ | |
- 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: allure-report-page | |
# allure_report: allure-report | |
allure_history: allure-history | |
# allure_history: last-history | |
keep_reports: 20 | |
- 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 | |
personal_token: ${{secrets.GITHUB_TOKEN}} | |
publish_branch: gh-pages | |
publish_dir: allure-history |