Skip to content

Commit 10c3930

Browse files
committed
Add deployment steps for test reports to GitHub Pages
1 parent cd53889 commit 10c3930

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/build-validation.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ jobs:
6868
name: Package
6969
path: client/build/libs
7070

71+
- name: Deploy Test Report to GitHub Pages
72+
if: always()
73+
run: |
74+
mkdir -p gh-pages
75+
cp -r client/build/reports/tests/integrationTest/* gh-pages/
76+
touch gh-pages/.nojekyll # Ensures GitHub Pages processes static files correctly
77+
78+
- name: Deploy to GitHub Pages
79+
if: always()
80+
uses: JamesIves/github-pages-deploy-action@v4
81+
with:
82+
branch: gh-pages
83+
folder: gh-pages
84+
clean: true # Ensures old files are removed
85+
7186
- name: Fail the job if tests failed
7287
if: env.TEST_FAILED == 'true'
7388
run: exit 1

0 commit comments

Comments
 (0)