Skip to content

Commit

Permalink
chore: report code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Jul 13, 2022
1 parent 2fd9dfe commit 79bef33
Show file tree
Hide file tree
Showing 6 changed files with 278 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ jobs:
run: yarn run lint

- name: Test
run: yarn test
run: yarn test --coverage

- name: Build
run: yarn run build

- name: codecov
uses: codecov/codecov-action@v2
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.log
.DS_Store
node_modules
dist
/dist
/coverage
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# quickjs-emscripten-sync

We can build a plugin system that works safely in the web browser!
[![CI](https://github.com/reearth/quickjs-emscripten-sync/actions/workflows/ci.yml/badge.svg)](https://github.com/reearth/quickjs-emscripten-sync/actions/workflows/main.yml) [![codecov](https://codecov.io/gh/reearth/quickjs-emscripten-sync/branch/main/graph/badge.svg)](https://codecov.io/gh/reearth/quickjs-emscripten-sync)

Build a secure plugin system in web browsers

This library wraps [quickjs-emscripten](https://github.com/justjake/quickjs-emscripten) and provides a way to sync object state between the browser and sandboxed QuickJS.

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.30.6",
"@typescript-eslint/parser": "^5.30.6",
"c8": "^7.11.3",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
Expand Down
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ export default defineConfig({
},
},
},
test: {
coverage: {
reporter: ["text", "json"],
},
},
});
Loading

0 comments on commit 79bef33

Please sign in to comment.