Update README.md #11
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: Run_NPM_JEST_Test_Generate_Allure_Report | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 16.x | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
#- run: npm install jest-html-reporter --save-dev | |
- run: npm install --save-dev allure-commandline | |
- run: npm install --save-dev allure-jest | |
- run: npm ci | |
- run: npm test | |
if: always() | |
continue-on-error: true | |
- name: Load test report history | |
uses: actions/checkout@v3 | |
if: always() | |
continue-on-error: true | |
with: | |
ref: gh-pages | |
path: gh-pages | |
- name: Build test report | |
uses: simple-elf/allure-report-action@v1.7 | |
if: always() | |
with: | |
gh_pages: gh-pages | |
allure_history: allure-history | |
allure_results: build/allure-results | |
- name: Publish test report | |
uses: peaceiris/actions-gh-pages@v3 | |
if: always() | |
with: | |
github_token: $ | |
publish_branch: gh-pages | |
publish_dir: allure-history | |
#Author : Faizzy aka Faiz Ahmed https://www.linkedin.com/in/faiz-ahmed-a2660189/ |