Skip to content

Commit

Permalink
chore: upload code coverage report to Deploy (#6203)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored Dec 11, 2024
1 parent 5a597be commit 7480f35
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ jobs:
run: deno task test:browser
if: matrix.deno == 'v2.x' && matrix.os == 'ubuntu-latest'

- name: Generate lcov
run: deno task cov:gen
- name: Generate lcov and html reports
run: |
deno task cov:gen
deno task cov:view
- name: Upload coverage
uses: codecov/codecov-action@v5
Expand All @@ -58,6 +60,14 @@ jobs:
with:
name: ${{ matrix.os }}-${{ matrix.deno }}

- name: Upload coverage to Deploy
uses: denoland/deployctl@v1
with:
project: std-coverage
root: coverage/html
entrypoint: jsr:@std/http@1/file-server
if: matrix.deno == 'canary' && matrix.os == 'ubuntu-latest' && github.event_name == 'push'

- name: Publish dry run
run: deno publish --dry-run
if: matrix.deno == 'canary' && matrix.os == 'ubuntu-latest'
Expand Down

0 comments on commit 7480f35

Please sign in to comment.