Skip to content

Commit

Permalink
Merge pull request newrelic#97 from bizob2828/code-coverage
Browse files Browse the repository at this point in the history
NR-60808 added c8, publish coverage to codecov, updated README badges 🚀
  • Loading branch information
bizob2828 authored Oct 28, 2022
2 parents 05d8d9d + 22c97ab commit c222887
Show file tree
Hide file tree
Showing 7 changed files with 2,559 additions and 2,871 deletions.
5 changes: 5 additions & 0 deletions merged/nextjs/.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 merged/nextjs/.github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
run: npm ci
- 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 merged/nextjs/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 Next.js instrumentation [![Next.js Instrumentation CI][1]][2]
# New Relic Next.js instrumentation
[![npm status badge][5]][6] [![Next.js Instrumentation CI][1]][2] [![codecov][7]][8]

This is New Relic's official Next.js framework instrumentation for use with the New Relic [Node.js agent](https://github.com/newrelic/node-newrelic).

Expand Down Expand Up @@ -201,3 +202,7 @@ New Relic Next.js instrumentation also uses source code from third-party librari
[2]: https://github.com/newrelic/node-newrelic-nextjs/actions
[3]: https://docs.newrelic.com/docs/agents/nodejs-agent/installation-configuration/install-nodejs-agent
[4]: https://docs.newrelic.com/docs/agents/nodejs-agent/getting-started/compatibility-requirements-nodejs-agent
[5]: https://img.shields.io/npm/v/@newrelic/next.svg
[6]: https://www.npmjs.com/package/@newrelic/next
[7]: https://codecov.io/gh/newrelic/newrelic-node-nextjs/branch/main/graph/badge.svg?token=UPO8LT1X4W
[8]: https://codecov.io/gh/newrelic/newrelic-node-nextjs
37 changes: 30 additions & 7 deletions merged/nextjs/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/newrelic-node
* [@newrelic/eslint-config](#newreliceslint-config)
* [@newrelic/newrelic-oss-cli](#newrelicnewrelic-oss-cli)
* [@newrelic/test-utilities](#newrelictest-utilities)
* [c8](#c8)
* [husky](#husky)
* [lint-staged](#lint-staged)
* [newrelic](#newrelic)
Expand All @@ -32,7 +33,7 @@ code, the source code can be found at [https://github.com/newrelic/newrelic-node

### semver

This product includes source derived from [semver](https://github.com/npm/node-semver) ([v7.3.7](https://github.com/npm/node-semver/tree/v7.3.7)), distributed under the [ISC License](https://github.com/npm/node-semver/blob/v7.3.7/LICENSE):
This product includes source derived from [semver](https://github.com/npm/node-semver) ([v7.3.8](https://github.com/npm/node-semver/tree/v7.3.8)), distributed under the [ISC License](https://github.com/npm/node-semver/blob/v7.3.8/LICENSE):

```
The ISC License
Expand All @@ -58,7 +59,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

### @newrelic/eslint-config

This product includes source derived from [@newrelic/eslint-config](https://github.com/newrelic/eslint-config-newrelic) ([v0.0.4](https://github.com/newrelic/eslint-config-newrelic/tree/v0.0.4)), distributed under the [Apache-2.0 License](https://github.com/newrelic/eslint-config-newrelic/blob/v0.0.4/LICENSE):
This product includes source derived from [@newrelic/eslint-config](https://github.com/newrelic/eslint-config-newrelic) ([v0.2.0](https://github.com/newrelic/eslint-config-newrelic/tree/v0.2.0)), distributed under the [Apache-2.0 License](https://github.com/newrelic/eslint-config-newrelic/blob/v0.2.0/LICENSE):

```
Apache License
Expand Down Expand Up @@ -475,7 +476,7 @@ This product includes source derived from [@newrelic/newrelic-oss-cli](https://g

### @newrelic/test-utilities

This product includes source derived from [@newrelic/test-utilities](https://github.com/newrelic/node-test-utilities) ([v6.5.3](https://github.com/newrelic/node-test-utilities/tree/v6.5.3)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-test-utilities/blob/v6.5.3/LICENSE):
This product includes source derived from [@newrelic/test-utilities](https://github.com/newrelic/node-test-utilities) ([v6.5.5](https://github.com/newrelic/node-test-utilities/tree/v6.5.5)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-test-utilities/blob/v6.5.5/LICENSE):

```
Apache License
Expand Down Expand Up @@ -682,6 +683,28 @@ This product includes source derived from [@newrelic/test-utilities](https://git
```

### 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.
```

### husky

This product includes source derived from [husky](https://github.com/typicode/husky) ([v8.0.1](https://github.com/typicode/husky/tree/v8.0.1)), distributed under the [MIT License](https://github.com/typicode/husky/blob/v8.0.1/LICENSE):
Expand Down Expand Up @@ -713,7 +736,7 @@ SOFTWARE.

### lint-staged

This product includes source derived from [lint-staged](https://github.com/okonet/lint-staged) ([v12.4.2](https://github.com/okonet/lint-staged/tree/v12.4.2)), distributed under the [MIT License](https://github.com/okonet/lint-staged/blob/v12.4.2/LICENSE):
This product includes source derived from [lint-staged](https://github.com/okonet/lint-staged) ([v12.5.0](https://github.com/okonet/lint-staged/tree/v12.5.0)), distributed under the [MIT License](https://github.com/okonet/lint-staged/blob/v12.5.0/LICENSE):

```
The MIT License (MIT)
Expand Down Expand Up @@ -742,7 +765,7 @@ SOFTWARE.

### newrelic

This product includes source derived from [newrelic](https://github.com/newrelic/node-newrelic) ([v9.0.3](https://github.com/newrelic/node-newrelic/tree/v9.0.3)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-newrelic/blob/v9.0.3/LICENSE):
This product includes source derived from [newrelic](https://github.com/newrelic/node-newrelic) ([v9.5.0](https://github.com/newrelic/node-newrelic/tree/v9.5.0)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-newrelic/blob/v9.5.0/LICENSE):

```
Apache License
Expand Down Expand Up @@ -950,7 +973,7 @@ This product includes source derived from [newrelic](https://github.com/newrelic

### sinon

This product includes source derived from [sinon](https://github.com/sinonjs/sinon) ([v14.0.0](https://github.com/sinonjs/sinon/tree/v14.0.0)), distributed under the [BSD-3-Clause License](https://github.com/sinonjs/sinon/blob/v14.0.0/LICENSE):
This product includes source derived from [sinon](https://github.com/sinonjs/sinon) ([v14.0.1](https://github.com/sinonjs/sinon/tree/v14.0.1)), distributed under the [BSD-3-Clause License](https://github.com/sinonjs/sinon/blob/v14.0.1/LICENSE):

```
(The BSD License)
Expand Down Expand Up @@ -985,7 +1008,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

### tap

This product includes source derived from [tap](https://github.com/tapjs/node-tap) ([v16.2.0](https://github.com/tapjs/node-tap/tree/v16.2.0)), distributed under the [ISC License](https://github.com/tapjs/node-tap/blob/v16.2.0/LICENSE):
This product includes source derived from [tap](https://github.com/tapjs/node-tap) ([v16.3.0](https://github.com/tapjs/node-tap/tree/v16.3.0)), distributed under the [ISC License](https://github.com/tapjs/node-tap/blob/v16.3.0/LICENSE):

```
The ISC License
Expand Down
Loading

0 comments on commit c222887

Please sign in to comment.