From d5f71ef8046b9ddf0ca7f41810d84626c4273dd6 Mon Sep 17 00:00:00 2001 From: adrian Date: Tue, 30 Dec 2025 17:58:18 +0100 Subject: [PATCH] Add steps to deploy test coverage reports to GitHub Pages. --- .github/workflows/blank.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 747cfae..bdbeab1 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -43,3 +43,15 @@ jobs: - name: Run Unit Tests run: ./gradlew testDebugUnitTest + + - name: Prepare Coverage for Pages + if: github.ref == 'refs/heads/main' + run: | + mkdir -p public/coverage + cp -r app/build/reports/coverage/androidTest/debug/connected/* public/coverage/ + - name: Deploy Coverage to GitHub Pages + if: github.ref == 'refs/heads/main' + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: public \ No newline at end of file