Skip to content

Commit

Permalink
updated to publish Coverage Report and Unit Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidparry committed Sep 7, 2024
1 parent b77dc68 commit 0d8bf8c
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,32 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: build
path: build

- name: Clone Wiki Repository
run: |
git clone https://github.com/${{ github.repository }}.wiki.git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Copy JaCoCo Report to Wiki
run: |
mkdir -p ${{ github.repository }}.wiki/JacocoCoverage
cp -r build/customJacocoReportDir/html/* ${{ github.repository }}.wiki/JacocoCoverage/
- name: Copy Unit Test Report to Wiki
run: |
mkdir -p ${{ github.repository }}.wiki/UnitTests
cp -r cover-agent-plugin/build/reports/tests/test/* ${{ github.repository }}.wiki/UnitTests/
- name: Commit and Push JaCoCo Report to Wiki
run: |
cd ${{ github.repository }}.wiki
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
git add JacocoCoverage/
git add UnitTests/
git commit -m "Updated JaCoCo/UnitTests report"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0d8bf8c

Please sign in to comment.