-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add Allure reports to GH pages #2393
Open
raits
wants to merge
25
commits into
develop
Choose a base branch
from
improve-actions-allure
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
ff2db30
feat: add central server allure reports
raits ed200f6
feat: add allure report publishing to Security Server and E2E
raits b71ed47
Merge branch 'develop' into improve-actions-allure
raits 5d4ca98
chore: address review comments
raits 83123fe
chore: add back missing `uses` for new script job
raits 7057953
chore: correct `uses` location
raits f07b732
chore: fix markup
raits 118ed98
chore: skip sonar task if SONAR_TOKEN is missing
raits 88594ba
feat: add artifact links to allure reports table
raits 20a5c62
chore: test artifact URL output
raits 019e330
chore: always upload CS artifacts
raits f1cd06c
chore: remove # from infront of run
raits e48cd6f
chore: try SS artifacts
raits 2ab5ff4
chore: fix file rights
raits db5cf2c
chore: test conditional in body
raits 6e337d1
chore: search for `needs` inside the context
raits 1b99be7
chore: log out context
raits 6fee9c6
chore: try to extract needs into const
raits 8559476
chore: possibly incorrect syntax for newer files
raits dd6546d
Merge branch 'develop' into improve-actions-allure
raits 3ae504f
Merge branch 'develop' into improve-actions-allure
raits b8dc8a9
chore: fix typo
raits 94dcc3c
feat: add artifacts url check to SS and E2E tests
raits cd18eed
chore: fix output names for SS and E2E tests
raits fe9bdf2
feat: add container logs to CS artifacts
raits File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,6 +155,41 @@ jobs: | |
with: | ||
name: CS System Test screenshots | ||
path: src/central-server/admin-service/ui-system-test/build/reports/test-automation/selenide-failures/*.png | ||
- name: Load test report history | ||
uses: actions/checkout@v4 | ||
if: always() | ||
continue-on-error: true | ||
with: | ||
ref: allure-gh-pages | ||
path: allure-reports | ||
|
||
- name: Build test report | ||
uses: simple-elf/[email protected] | ||
if: always() | ||
with: | ||
gh_pages: allure-reports | ||
subfolder: central-server/ui-system-test | ||
allure_history: allure-history | ||
allure_results: src/central-server/admin-service/ui-system-test/build/allure-results | ||
|
||
- name: Publish test report | ||
uses: peaceiris/actions-gh-pages@v4 | ||
if: always() | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_branch: allure-gh-pages | ||
publish_dir: allure-history | ||
- name: Add link to the report as a comment | ||
uses: actions/github-script@v7 | ||
if: always() | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Central Server Allure report: https://nordic-institute.github.io/X-Road/central-server/ui-system-test/${{ github.run_number }}' | ||
}) | ||
RunSSSystemTests: | ||
name: Run Security Server system tests | ||
needs: BuildAndPackageWithUnitTests | ||
|
@@ -220,6 +255,41 @@ jobs: | |
src/security-server/system-test/build/ss-container-logs/ | ||
src/security-server/system-test/build/ca-container-logs/ | ||
src/security-server/system-test/build/reports/test-automation/selenide-failures/*.png | ||
- name: Load test report history | ||
uses: actions/checkout@v4 | ||
if: always() | ||
continue-on-error: true | ||
with: | ||
ref: allure-gh-pages | ||
path: allure-reports | ||
|
||
- name: Build test report | ||
uses: simple-elf/[email protected] | ||
if: always() | ||
with: | ||
gh_pages: allure-reports | ||
subfolder: security-server/system-test | ||
allure_history: allure-history | ||
allure_results: src/security-server/system-test/build/allure-results | ||
|
||
- name: Publish test report | ||
uses: peaceiris/actions-gh-pages@v4 | ||
if: always() | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_branch: allure-gh-pages | ||
publish_dir: allure-history | ||
- name: Add link to the report as a comment | ||
uses: actions/github-script@v7 | ||
if: always() | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Security Server Allure report: https://nordic-institute.github.io/X-Road/security-server/system-test/${{ github.run_number }}' | ||
}) | ||
RunE2ETests: | ||
name: Run E2E tests | ||
needs: BuildAndPackageWithUnitTests | ||
|
@@ -299,3 +369,37 @@ jobs: | |
name: E2E report | ||
path: | | ||
src/security-server/e2e-test/build/allure-report/ | ||
- name: Load test report history | ||
uses: actions/checkout@v4 | ||
if: always() | ||
continue-on-error: true | ||
with: | ||
ref: allure-gh-pages | ||
path: allure-reports | ||
|
||
- name: Build test report | ||
uses: simple-elf/[email protected] | ||
if: always() | ||
with: | ||
gh_pages: allure-reports | ||
subfolder: e2e | ||
allure_history: allure-history | ||
allure_results: src/security-server/e2e-test/build/allure-results | ||
- name: Publish test report | ||
uses: peaceiris/actions-gh-pages@v4 | ||
if: always() | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_branch: allure-gh-pages | ||
publish_dir: allure-history | ||
- name: Add link to the report as a comment | ||
uses: actions/github-script@v7 | ||
if: always() | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'E2E Allure report: https://nordic-institute.github.io/X-Road/e2e/${{ github.run_number }}' | ||
}) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps opening in a new tab would be preferred?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on what I found searching the topic it seems that this is not possible in GitHub comments.