From 6bcd1b2fa0f8c87e432c32a80c573fe6626e918c Mon Sep 17 00:00:00 2001 From: Westin Wrzesinski Date: Mon, 21 Feb 2022 18:25:07 -0600 Subject: [PATCH] chore: setup codecov and badges --- .github/workflows/main.yml | 3 +++ README.md | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b9d997f..d955178 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,3 +29,6 @@ jobs: - name: ▶️ Run build script run: npm run build + + - name: ⬆️ Upload karma coverage report + uses: codecov/codecov-action@v2 diff --git a/README.md b/README.md index 85a2185..e8dbc3b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,17 @@ Universal Serialize ------------------- +[![build status][build-badge]][build] +[![code coverage][coverage-badge]][coverage] +[![npm version][version-badge]][package] + +[build-badge]: https://img.shields.io/github/workflow/status/krakenjs/universal-serialize/build?logo=github&style=flat-square +[build]: https://github.com/krakenjs/universal-serialize/actions?query=workflow:build +[coverage-badge]: https://img.shields.io/codecov/c/github/krakenjs/universal-serialize.svg?style=flat-square +[coverage]: https://codecov.io/github/krakenjs/universal-serialize/ +[version-badge]: https://img.shields.io/npm/v/universal-serialize.svg?style=flat-square +[package]: https://www.npmjs.com/package/universal-serialize + Universal serializer and deserializer, which supports many build-in javascript types, and any number of custom types you want to support ## Simple serialization