Skip to content

Commit

Permalink
#474 - Publish aggregated Cucumber Report
Browse files Browse the repository at this point in the history
Publishing generated HTML aggregated Cucumber to GitHub Pages via GitHub Actions.
  • Loading branch information
habibimoiz committed Nov 25, 2024
1 parent 570cdc6 commit 2326e40
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
type: string
default: "dev"
push:
branches: [ "dev" ]
branches: [ "474-publish-aggregated-cucumber-report" ]
schedule:
- cron: "0 6 * * *" # every day at 6am UTC

Expand Down Expand Up @@ -96,6 +96,17 @@ jobs:
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.9
# Deploy aggregated Cucumber report to GitHub Pages
- name: Adding index.html file to aggregated cucumber report dir
run: |
touch index.html ./cucumber-report-aggregator/target/cucumber-reports/cucumber-html-reports
echo "<!DOCTYPE html><html lang="en"><head><meta http-equiv="refresh" content="0; URL='overview-features.html'"><title>Redirecting...</title></head><body><p>If you are not redirected automatically, <a href="overview-features">click here</a>.</p></body></html>" >> ./cucumber-report-aggregator/target/cucumber-reports/cucumber-html-reports/index.html
- name: Delpoy aggregated Cucumber report to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish dir: ./cucumber-report-aggregator/target/cucumber-reports/cucumber-html-reports
destination_dir: cucumber-html-reports
# Execute archetype tests
- name: Run Archetype Tests
run: |
Expand Down

0 comments on commit 2326e40

Please sign in to comment.