mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
chore: add cov:*
tasks (#3743)
This commit is contained in:
parent
ab6898e6a1
commit
09759c1945
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -47,10 +47,7 @@ jobs:
|
||||
run: deno task test:browser
|
||||
|
||||
- name: Generate lcov
|
||||
shell: bash
|
||||
# excludes tests, testdata, and generated sources from coverage report
|
||||
run: |
|
||||
deno coverage ./cov/ --lcov --exclude="test\\.(ts|js)|wasm\\.js|testdata" > cov.lcov
|
||||
run: deno task cov:gen
|
||||
|
||||
- name: Upload coverage
|
||||
uses: codecov/codecov-action@v3
|
||||
@ -58,12 +55,6 @@ jobs:
|
||||
name: ${{ matrix.os }}-${{ matrix.deno }}
|
||||
files: cov.lcov
|
||||
|
||||
- name: Remove coverage report
|
||||
shell: bash
|
||||
run: |
|
||||
rm -rf ./cov/
|
||||
rm cov.lcov
|
||||
|
||||
- name: Release if version change
|
||||
if: |
|
||||
matrix.os == 'ubuntu-22.04' &&
|
||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,3 +6,5 @@
|
||||
/crypto/_wasm/target
|
||||
deno.lock
|
||||
/console/testdata/unicode_width_crate/target
|
||||
html_cov/
|
||||
cov.lcov
|
||||
|
@ -18,7 +18,10 @@
|
||||
"lint": "deno lint && deno task fmt:licence-headers --check && deno task lint:deprecations && deno task lint:doc-imports && deno task lint:circular && deno task lint:tools-types",
|
||||
"typos": "typos -c ./.github/workflows/typos.toml",
|
||||
"build:crypto": "deno task --cwd crypto/_wasm wasmbuild",
|
||||
"wasmbuild": "deno run --unstable -A https://deno.land/x/wasmbuild@0.15.0/main.ts --js-ext mjs --sync"
|
||||
"wasmbuild": "deno run --unstable -A https://deno.land/x/wasmbuild@0.15.0/main.ts --js-ext mjs --sync",
|
||||
"cov:clean": "rm -rf cov html_cov cov.lcov",
|
||||
"cov:gen": "deno coverage ./cov/ --lcov --output=cov.lcov",
|
||||
"cov:view": "genhtml --ignore-errors unmapped -o html_cov cov.lcov && open html_cov/index.html"
|
||||
},
|
||||
"exclude": [
|
||||
".git",
|
||||
|
Loading…
Reference in New Issue
Block a user