This pattern is been migrated to https://github.com/PavanMudigonda/html-reporter-github-pages
pavanmudigonda / allure-html-reporter-github-pages Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://www.linkedin.com/in/pavanmudigonda/
Home Page: https://www.linkedin.com/in/pavanmudigonda/
This pattern is been migrated to https://github.com/PavanMudigonda/html-reporter-github-pages
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%.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.