Skip to content

Commit

Permalink
build: collect and upload code coverage (denoland#770)
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Casonato <[email protected]>
  • Loading branch information
caspervonb and lucacasonato authored Feb 28, 2021
1 parent 332258b commit 692fc6f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
comment: false
codecov:
require_ci_to_pass: true
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,19 @@ jobs:
if: matrix.deno == 'canary'
run: deno upgrade --canary

- name: Test
run: deno test --unstable --allow-all
- name: Run tests
run: deno test --coverage=./cov --unstable --allow-all

- name: Generate lcov
if: matrix.deno == 'canary'
run: deno coverage --unstable --lcov ./cov > cov.lcov

- name: Upload coverage
if: matrix.deno == 'canary'
uses: codecov/codecov-action@v1
with:
name: ${{ matrix.os }}-${{ matrix.deno }}
files: cov.lcov

lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 692fc6f

Please sign in to comment.