Open neerajkumarlad opened 2 years ago
For generation report, you can use the ubuntu image and download artifact:
jobs:
tests:
runs-on: mac-os
name: Run tests
steps:
.....run tests
- name: Upload artifact
if: always()
uses: actions/upload-artifact@master
with:
name: allure-results
path: build/allure-results
retention-days: 30
generate_report:
name: Allure report & notification
runs-on: ubuntu-latest
if: always()
needs: [ tests ]
steps:
- name: Download Artifacts 🔻
uses: actions/download-artifact@v3
id: download
with:
name: allure-results
path: allure-results
- 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()
with:
allure_results: allure-results
allure_report: ${{ github.run_number }}
gh_pages: gh-pages
allure_history: /allure-history
- name: Deploy report to Github Pages
uses: peaceiris/actions-gh-pages@v3
if: always()
with:
PERSONAL_TOKEN: ${{ secrets.GH_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: allure-history
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
if: always()
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ needs.tests.result }}
SLACK_USERNAME: NotificationBot
SLACK_TITLE: Allure report
SLACK_MESSAGE: url to GH pages
MSG_MINIMAL: event,actions url,commit
@Artem034 @neerajkumarlad see also https://github.com/simple-elf/allure-report-action/issues/44#issuecomment-1919539380
I have followed given link steps (https://github.com/simple-elf/allure-report-action) and found that i am getting error stating that
"Error: Container action is only supported on Linux"
Here is the screenshot :
@simple-elf Can u help me?