Add coverage upload to pages in test.yaml

master
Daniel Lovell 2024-09-30 00:56:31 -07:00
parent 9a569e6415
commit 474c322b35
1 changed files with 24 additions and 1 deletions

View File

@ -50,4 +50,27 @@ jobs:
if: always()
with:
name: Coverage results for ${{ matrix.testMode }}
path: ${{ steps.tests.outputs.coveragePath }}
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