From 94bcd6a6dd94bfaabcaa6c8e877f388f31211d45 Mon Sep 17 00:00:00 2001 From: Emilio Orsi Date: Thu, 15 Feb 2024 17:24:24 -0300 Subject: [PATCH] Add coverage badge --- .github/workflows/test.yml | 18 ++++++++++++++++++ README.md | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7d7941e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +# .github/workflows/test.yml +name: Test +on: [push, pull_request, workflow_dispatch] +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - name: Install + run: npm install + - name: Test and Coverage + run: npm run test:coverage + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + env: + token: ${{ secrets.CODECOV_TOKEN }} + slug: orsiemilio/JsonShapeShifter diff --git a/README.md b/README.md index 2e0b9b9..0b1e886 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # JsonShapeShifter +[![codecov](https://codecov.io/gh/orsiemilio/JsonShapeShifter/graph/badge.svg?token=SMTK5VI1E2)](https://codecov.io/gh/orsiemilio/JsonShapeShifter) + JsonShapeShifter is a handy tool made to change JSON objects into different shapes using specific rules and functions you set. It's super useful for a bunch of tasks, like fixing up data to send over the web, organizing information, or even getting data ready to be turned into XML for special web services, where keeping things in the right order is super important. A while back, I faced issues with the structure of JSON data from MongoDB. To solve this, especially since I had to work with SOAP-based services where XML demands precise ordering of values, I developed a solution similar to this.