Skip to content

Commit 9714710

Browse files
committed
add testing
1 parent 7905ad2 commit 9714710

3 files changed

Lines changed: 46 additions & 1 deletion

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/coverage.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Coverage Testing
2+
3+
on: [workflow_dispatch, push, pull_request]
4+
5+
permissions: read-all
6+
7+
jobs:
8+
Coverage-on-Ubuntu:
9+
runs-on: ubuntu-latest
10+
env:
11+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '22'
18+
19+
- name: Install Application
20+
run: |
21+
npm ci
22+
npm install -g c8
23+
24+
- name: Run Coverage Testing
25+
run: npm run coverage
26+
27+
- name: Codecov
28+
if: ${{ github.event_name != 'pull_request' && env.CODECOV_TOKEN != '' }}
29+
run: |
30+
curl -Os https://uploader.codecov.io/latest/linux/codecov
31+
chmod +x codecov
32+
./codecov -t ${CODECOV_TOKEN}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"javascript",
77
"object",
88
"difference",
9-
"deep-difference"
9+
"deep-difference",
10+
"object-diff",
11+
"object-comparison"
1012
],
1113
"homepage": "https://github.com/cityssm/node-object-difference#readme",
1214
"bugs": {

0 commit comments

Comments
 (0)