Integration Allure report to Github Actions - IvanBezrukavyi/ts-playwright GitHub Wiki

1. Generate a github token.

Go to <your_profile> -> Settings -> Developer Settings -> Personal Access Token -> Tokens -> Generate it with such options image

2. Change Workflow Permissions.

Go to <your_repo> -> Settings -> Actions -> Change workflow permission image

3. Add a build page to your repo

image

4. Add needed code snippet to workflow.

Open your workflow.yml file and add this code snippet or investigate this wiki

 `- 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()
    #id: allure-report
    with:
      allure_results: allure-results
      gh_pages: gh-pages
      allure_report: allure-report
      allure_history: allure-history

  - name: Deploy report to Github Pages
    if: always()
    uses: peaceiris/actions-gh-pages@v2
    env:
      PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      PUBLISH_BRANCH: gh-pages
      PUBLISH_DIR: allure-history`

5. Push your changes to your branch and wait build completion

6. Verify the presence of the new branch

image ## 7. Verify the presence of 'Deployments' section in your repo image ## 8. Click on it and this navigation icon image ## 9. Here we go!!! Now you can review the generated report. Here is an example: image
⚠️ **GitHub.com Fallback** ⚠️