Skip to content

Commit

Permalink
Merge pull request newrelic#157 from jmartin4563/NR-60705-codecov
Browse files Browse the repository at this point in the history
NR-60705 wire up c8 and codecov for coverage collection
  • Loading branch information
jmartin4563 committed Oct 27, 2022
2 parents 9e8cbcd + 4967ed5 commit 5bf14e4
Show file tree
Hide file tree
Showing 7 changed files with 405 additions and 21 deletions.
5 changes: 5 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"reporter": ["html", "lcov"],
"all": true,
"exclude": ["tests/*", "coverage/*", ".eslintrc.js"]
}
14 changes: 14 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
run: npm install
- name: Run Unit Tests
run: npm run unit
- name: Post Unit Test Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/unit/
files: lcov.info
flags: unit-tests-${{ matrix.node-version }}

versioned:
runs-on: ubuntu-latest
Expand All @@ -60,3 +67,10 @@ jobs:
- name: Run Versioned Tests (npm v7+ / Node 16+)
if: ${{ matrix.node-version != '14.x' }}
run: npm run versioned:npm7
- name: Post Versioned Test Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/versioned/
files: lcov.info
flags: versioned-tests-${{ matrix.node-version }}
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![Community Plus header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Plus.png)](https://opensource.newrelic.com/oss-category/#community-plus)
[![Community Plus header](https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Community_Plus.png)](https://opensource.newrelic.com/oss-category/#community-plus)

# New Relic AWS SDK Instrumentation [![aws-sdk Instrumentation CI][1]][2]
# New Relic AWS SDK Instrumentation
[![npm status badge][5]][6] [![aws-sdk Instrumentation CI][1]][2] [![codecov][3]][4]

New Relic's official AWS SDK package instrumentation for use with [the Node.js agent](https://github.com/newrelic/node-newrelic). Provides instrumentation for the [AWS SDK (`aws-sdk`)](https://www.npmjs.com/package/aws-sdk) npm package.

Expand Down Expand Up @@ -86,3 +87,7 @@ The New Relic AWS SDK Instrumentation package is licensed under the [Apache 2.0]

[1]: https://github.com/newrelic/node-newrelic-aws-sdk/workflows/aws-sdk%20Instrumentation%20CI/badge.svg
[2]: https://github.com/newrelic/node-newrelic-aws-sdk/actions?query=workflow%3A%22aws-sdk+Instrumentation+CI%22
[3]: https://codecov.io/gh/newrelic/node-newrelic-aws-sdk/branch/main/graph/badge.svg?token=26ZH9QhLNn
[4]: https://codecov.io/gh/newrelic/node-newrelic-aws-sdk
[5]: https://img.shields.io/npm/v/@newrelic/aws-sdk.svg
[6]: https://www.npmjs.com/package/@newrelic/aws-sdk
23 changes: 23 additions & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
* [@newrelic/newrelic-oss-cli](#newrelicnewrelic-oss-cli)
* [@newrelic/test-utilities](#newrelictest-utilities)
* [aws-sdk](#aws-sdk)
* [c8](#c8)
* [eslint-config-prettier](#eslint-config-prettier)
* [eslint-plugin-header](#eslint-plugin-header)
* [eslint-plugin-node](#eslint-plugin-node)
Expand Down Expand Up @@ -875,6 +876,28 @@ This product includes source derived from [aws-sdk](https://github.com/aws/aws-s
```

### c8

This product includes source derived from [c8](https://github.com/bcoe/c8) ([v7.12.0](https://github.com/bcoe/c8/tree/v7.12.0)), distributed under the [ISC License](https://github.com/bcoe/c8/blob/v7.12.0/LICENSE.txt):

```
Copyright (c) 2017, Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice
appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
```

### eslint-config-prettier

This product includes source derived from [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) ([v8.3.0](https://github.com/prettier/eslint-config-prettier/tree/v8.3.0)), distributed under the [MIT License](https://github.com/prettier/eslint-config-prettier/blob/v8.3.0/LICENSE):
Expand Down
Loading

0 comments on commit 5bf14e4

Please sign in to comment.