Code Monkey home page Code Monkey logo

allure-html-reporter-github-pages's Introduction

allure-html-reporter-github-pages's People

Contributors

nishantsingh10 avatar pavanmudigonda avatar pavanmudigondatr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

allure-html-reporter-github-pages's Issues

Feature Request

is there any way to get percentage of allure report in github action, i want to break the pipeline if percentage is less that 75%.

index.html being generated based on root folder and not subfolder

Hello Pavan! First, thank you for making this action available.

I have a doubt about creating the index.html using the history of a subfolder rather than the repository's root folder.
I have the following structure:

.
├── index.html <- manually generated index to lead developers to the subfolders
├── pr
│      ├── PR_RELATED_STUFF
│      ├── ...  
└── sandbox 
        ├── index.html
        ├── 1 < - folders generated by allure-html-reporter-github-pages
        ├── 2
        ├── ...

Inside sandbox/index.html, I want the list of allure results inside the sandbox folder.
The content should be:

├── <a href=./3/index.html>RUN ID: 3- 2023-05-31 13:50:43 UTC(Latest)</a><br>
├── <a href=./2/>RUN ID: 2-   </a><br>
├── <a href=./1/>RUN ID: 1-   </a><br>

But instead, the generated file always has the last run and the root repository folders like this:

├── <a href=./855/index.html>RUN ID: 3 - 2023-05-31 13:50:43 UTC(Latest)</a><br>
├── <a href=./pr/>RUN ID: pr -   </a><br>
├── <a href=./sandbox/>RUN ID: sandbox -   </a><br>

I'm running the action like the following:

publish_e2e_tests:
    runs-on: ubuntu-20.04
    needs: [ run_e2e_tests ]
    steps:
      - name: Get Allure history
        uses: actions/checkout@v3
        continue-on-error: true
        with:
          ref: gh-pages
          path: gh-pages

      - name: Download Test Results
        uses: actions/download-artifact@v3
        with:
          name: test-results
          path: results

      - name: Allure Report
        uses: PavanMudigonda/[email protected]
        with:
          workflow_id: ${{ github.workflow }}
          allure_results: results
          keep_reports: 20

      - name: Deploy report to Github Pages
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_PAGES_TOKEN }}
          publish_branch: gh-pages
          publish_dir: allure-history
          destination_dir: sandbox
          keep_files: true
          exclude_assets: '.github,pr,sandbox'

I've tried to use subfolder without success. Is there a way to generate the index.html based on the content of a subfolder?

I appreciate any help you can give me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.