admin: updates for CI
This commit is contained in:
parent
66ad5f82fb
commit
e2b98b9e73
8
.github/workflows/test-ci.yml
vendored
8
.github/workflows/test-ci.yml
vendored
@ -15,7 +15,9 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [ 16.x, 18.x ]
|
node-version: [ 16.x, 18.x ]
|
||||||
test-type: [ test, test-commonjs ]
|
test-type: [ esm, commonjs ]
|
||||||
|
|
||||||
|
name: Run Tests (node: ${{ matrix.node-version }}, type: ${{ matrix.test-type }})
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
@ -35,12 +37,12 @@ jobs:
|
|||||||
run: npm run build-all
|
run: npm run build-all
|
||||||
|
|
||||||
- name: Run tests (${{ matrix.test-type }})
|
- name: Run tests (${{ matrix.test-type }})
|
||||||
run: npm run ${{ matrix.test-type }}
|
run: npm run test-${{ matrix.test-type }}
|
||||||
|
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
|
|
||||||
name: Coverage
|
name: Generate Coverage
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
1
output/.keep
Normal file
1
output/.keep
Normal file
@ -0,0 +1 @@
|
|||||||
|
# Keep this folder
|
@ -104,7 +104,7 @@
|
|||||||
"types": "./types/wordlistsindex.d.ts"
|
"types": "./types/wordlistsindex.d.ts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gitHead": "1f2318a34a224fc7e4c63fae1c680e1af14895ec",
|
"gitHead": "9771b851f8a1173a2a3474f618e999a7672d2347",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"ethereum",
|
"ethereum",
|
||||||
"ethers",
|
"ethers",
|
||||||
@ -136,12 +136,13 @@
|
|||||||
"build-types": "tsc --project tsconfig.types.json",
|
"build-types": "tsc --project tsconfig.types.json",
|
||||||
"clean": "rm -rf dist lib.esm lib.commonjs types",
|
"clean": "rm -rf dist lib.esm lib.commonjs types",
|
||||||
"stats": "echo 'Dependencies' && npm ls --all --omit=dev",
|
"stats": "echo 'Dependencies' && npm ls --all --omit=dev",
|
||||||
"test": "mocha --reporter ./reporter.cjs ./lib.esm/_tests/test-*.js",
|
"test": "npm run test-esm",
|
||||||
|
"test-esm": "mocha --reporter ./reporter.cjs ./lib.esm/_tests/test-*.js",
|
||||||
"test-commonjs": "mocha --reporter ./reporter.cjs ./lib.commonjs/_tests/test-*.js",
|
"test-commonjs": "mocha --reporter ./reporter.cjs ./lib.commonjs/_tests/test-*.js",
|
||||||
"test-coverage": "c8 -o output -r lcov -r text mocha --no-color --reporter ./reporter.cjs ./lib.esm/_tests/test-*.js | tee output/summary.txt"
|
"test-coverage": "c8 -o output -r lcov -r text mocha --no-color --reporter ./reporter.cjs ./lib.esm/_tests/test-*.js | tee output/summary.txt"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./types/index.d.ts",
|
"types": "./types/index.d.ts",
|
||||||
"version": "6.0.0-beta-exports.3"
|
"version": "6.0.0-beta-exports.4"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user