From e2b98b9e73e06747a6e427cd8739fcccb8213b2f Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Fri, 30 Sep 2022 19:38:49 -0400 Subject: [PATCH] admin: updates for CI --- .github/workflows/test-ci.yml | 8 +++++--- output/.keep | 1 + package.json | 7 ++++--- 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 output/.keep diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml index 8610cde4e..2308ad3c2 100644 --- a/.github/workflows/test-ci.yml +++ b/.github/workflows/test-ci.yml @@ -15,7 +15,9 @@ jobs: fail-fast: false matrix: 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: - name: Use Node.js ${{ matrix.node-version }} @@ -35,12 +37,12 @@ jobs: run: npm run build-all - name: Run tests (${{ matrix.test-type }}) - run: npm run ${{ matrix.test-type }} + run: npm run test-${{ matrix.test-type }} coverage: - name: Coverage + name: Generate Coverage runs-on: ubuntu-latest diff --git a/output/.keep b/output/.keep new file mode 100644 index 000000000..129f11b2c --- /dev/null +++ b/output/.keep @@ -0,0 +1 @@ +# Keep this folder diff --git a/package.json b/package.json index ec4312f59..519b4511d 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "types": "./types/wordlistsindex.d.ts" } }, - "gitHead": "1f2318a34a224fc7e4c63fae1c680e1af14895ec", + "gitHead": "9771b851f8a1173a2a3474f618e999a7672d2347", "keywords": [ "ethereum", "ethers", @@ -136,12 +136,13 @@ "build-types": "tsc --project tsconfig.types.json", "clean": "rm -rf dist lib.esm lib.commonjs types", "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-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, "type": "module", "types": "./types/index.d.ts", - "version": "6.0.0-beta-exports.3" + "version": "6.0.0-beta-exports.4" }