Skip to content

Commit

Permalink
feat: test monorepo coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
aelf-lxy committed Aug 1, 2024
1 parent 334ce3f commit cf70f32
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,27 @@ jobs:
source: packages/${{ matrix.package }}/coverage/coverage-summary.json
output: packages/${{ matrix.package }}/coverage/${{ matrix.package }}-badge.svg

- name: Upload coverage report to artifact
uses: actions/upload-artifact@v3
with:
name: coverage-${{ matrix.package }}
path: packages/${{ matrix.package }}/coverage

deploy:
runs-on: ubuntu-latest
needs: coverage

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Download coverage artifacts
uses: actions/download-artifact@v3
with:
path: coverage

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: packages/${{ matrix.package }}/coverage
publish_dir: coverage

0 comments on commit cf70f32

Please sign in to comment.