Skip to content

Commit

Permalink
chore: setup Codecov (#266)
Browse files Browse the repository at this point in the history
* chore: setup Codecov

* fix
  • Loading branch information
iuioiua committed Jun 19, 2023
1 parent c470c4d commit e8e5f6f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
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

0 comments on commit e8e5f6f

Please sign in to comment.