Skip to content

Commit

Permalink
chore: update coverage workings (#172)
Browse files Browse the repository at this point in the history
* chore: update coverage workings

* fix
  • Loading branch information
iuioiua authored Apr 13, 2024
1 parent d471cd8 commit d849bb6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
run: deno task ok

- name: Create lcov file
run: deno task cov:gen
run: deno task coverage --lcov --output=cov.lcov

- name: Upload coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cov/
coverage/
cov.lcov
deno.lock
html_cov/
8 changes: 3 additions & 5 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,17 @@
},
"tasks": {
"redis:start": "redis-server --save \"\" --appendonly no --daemonize yes",
"test": "deno test --allow-net --trace-leaks --coverage=cov --doc --parallel",
"test": "deno test --allow-net --trace-leaks --coverage --doc --parallel",
"test:dev": "deno task redis:start && deno task test || redis-cli SHUTDOWN",
"bench": "deno bench --allow-net --allow-env",
"bench:dev": "deno task redis:start && deno task bench",
"cov:clean": "rm -rf cov html_cov cov.lcov",
"cov:gen": "deno coverage ./cov/ --lcov --output=cov.lcov",
"cov:view": "genhtml -o html_cov cov.lcov && open html_cov/index.html",
"coverage": "deno coverage coverage",
"ok": "deno fmt --check && deno lint && deno task test",
"ok:dev": "deno fmt --check && deno lint && deno task test:dev",
"update:dev": "deno run -A https://deno.land/x/udd/main.ts --test=\"deno task ok:dev\" mod.ts test.ts",
"update": "deno run -A https://deno.land/x/udd/main.ts --test=\"deno task ok\" mod.ts test.ts"
},
"exclude": [
"/cov"
"/coverage"
]
}

0 comments on commit d849bb6

Please sign in to comment.