From 474c322b3531d4f910ad0a40ee0d0c1d9f3111c2 Mon Sep 17 00:00:00 2001 From: Daniel Lovell Date: Mon, 30 Sep 2024 00:56:31 -0700 Subject: [PATCH] Add coverage upload to pages in test.yaml --- .github/workflows/test.yaml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0a12a8c..f93a29a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -50,4 +50,27 @@ jobs: if: always() with: name: Coverage results for ${{ matrix.testMode }} - path: ${{ steps.tests.outputs.coveragePath }} \ No newline at end of file + path: ${{ steps.tests.outputs.coveragePath }} + upload-coverage: + needs: testAllModes + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Download all workflow run artifacts + uses: actions/download-artifact@v4 + with: + path: coverage-results + - name: Display structure of downloaded files + run: ls -R coverage-results + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: coverage-results + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4