Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: setup Codecov #266

Merged
merged 2 commits into from
Jun 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
comment: false
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@ jobs:

- name: Check formatting, linting, license headers, types and run tests
run: deno task ok

- name: Create lcov file
run: deno task cov

- name: Upload coverage
uses: codecov/codecov-action@v3
with:
name: ${{ matrix.os }}
files: cov.lcov
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.env
.env
*.DS_Store
cov/
cov.lcov
5 changes: 3 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"db:seed": "deno run --allow-read --allow-env --allow-net --unstable tools/seed_submissions.ts",
"db:reset": "deno run --allow-read --allow-env --unstable tools/reset_kv.ts",
"start": "deno run --unstable -A --watch=static/,routes/ dev.ts",
"test": "deno test -A --unstable",
"test": "deno test -A --unstable --coverage=./cov",
"check:license": "deno run --allow-read --allow-write tools/check_license.ts",
"ok": "deno fmt --check && deno lint && deno task check:license --check && deno check main.ts && deno task test"
"ok": "deno fmt --check && deno lint && deno task check:license --check && deno check main.ts && deno task test",
"cov": "deno coverage ./cov/ --lcov --exclude='test.ts' > cov.lcov"
},
"importMap": "./import_map.json",
"compilerOptions": {
Expand Down