Skip to content

Commit

Permalink
Merge pull request #32 from Consensys/update-deps
Browse files Browse the repository at this point in the history
Dependency updates
  • Loading branch information
cd1m0 authored Jan 22, 2024
2 parents 2492dde + cc60ab1 commit 92949b1
Show file tree
Hide file tree
Showing 12 changed files with 3,768 additions and 2,912 deletions.
56 changes: 27 additions & 29 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,34 @@
name: Node.js CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
build:
runs-on: ubuntu-latest

runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run coverage
- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v3
with:
name: codecov-umbrella
directory: ./coverage/
fail_ci_if_error: true
verbose: true
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run lint
- run: npm test
- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v3
with:
name: codecov-umbrella
directory: ./coverage/
fail_ci_if_error: true
verbose: true
28 changes: 14 additions & 14 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Build and release package

on:
release:
types: [published]
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 0 additions & 6 deletions .mocharc.json

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.0
16 changes: 0 additions & 16 deletions .nycrc.json

This file was deleted.

22 changes: 22 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"roots": [""],
"testMatch": ["**/test/**/*.spec.ts"],
"moduleDirectories": ["node_modules"],
"transform": {
"^.+\\.ts$": "ts-jest"
},

"testTimeout": 200000,
"verbose": true,

"coveragePathIgnorePatterns": ["/node_modules/", "/test/", "/coverage/", "/.compiler_cache/"],
"coverageReporters": ["text", "text-summary", "lcov"],
"coverageThreshold": {
"global": {
"statements": 85,
"branches": 68,
"functions": 80,
"lines": 85
}
}
}
Loading

0 comments on commit 92949b1

Please sign in to comment.