Skip to content

Commit

Permalink
Add coverage upload to pages in test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellovell committed Sep 30, 2024
1 parent 9a569e6 commit 474c322
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 474c322

Please sign in to comment.