diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f9e7dddb1..7584af89a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,11 +21,8 @@ jobs: with: node-version: ${{ env.NODE_JS }} - uses: bahmutov/npm-install@v1 - - run: npm run test:lint - - run: npm run test:prettier - - run: npm run test:spelling - - run: npm run test:tsc - - run: npm run doc:html + - run: npm run check + - run: npm run doc build: runs-on: ubuntu-latest @@ -102,7 +99,7 @@ jobs: runs-on: ubuntu-latest env: GO_WAKU_VERSION: "0.2.2" - WAKU_SERVICE_NODE_DIR: ./go-waku + WAKU_SERVICE_NODE_DIR: ../../go-waku WAKU_SERVICE_NODE_BIN: ./waku WAKU_SERVICE_NODE_PARAMS: "--min-relay-peers-to-publish=0" # Can be removed once https://github.com/status-im/nwaku/issues/1004 is done DEBUG: "waku*" @@ -123,6 +120,7 @@ jobs: shell: bash run: | uname -a + cd packages/core cd "${WAKU_SERVICE_NODE_DIR}" "${WAKU_SERVICE_NODE_BIN}" --version diff --git a/package.json b/package.json index f5631c57d9..e500b35dd0 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,10 @@ "build": "lerna run build", "size": "npm run build && size-limit", "fix": "lerna run fix", + "check": "lerna run check", "test": "lerna run test", + "test:browser": "lerna run test:browser", + "test:node": "lerna run test:node", "proto": "lerna run proto", "doc": "lerna run doc" }, diff --git a/packages/core/package.json b/packages/core/package.json index 004179b9d5..85a975f2b5 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -75,11 +75,12 @@ "pretest:2-build-nwaku": "[ -f '../../nwaku/build/wakunode2' ] || run-s nwaku:build", "nwaku:build": "(PROC=$(nproc --all 2>/dev/null || echo 2); cd ../../nwaku; make -j$PROC update; NIMFLAGS=\"-d:chronicles_colors=off -d:chronicles_sinks=textlines -d:chronicles_log_level=TRACE\" make -j$PROC wakunode2)", "nwaku:force-build": "(cd ../../nwaku && rm -rf ./build/ ./vendor) && run-s nwaku:build", + "check": "run-s check:*", + "check:lint": "eslint src --ext .ts", + "check:prettier": "prettier . --list-different", + "check:spelling": "cspell \"{README.md,src/**/*.ts}\"", + "check:tsc": "tsc -p tsconfig.dev.json", "test": "run-s test:*", - "test:lint": "eslint src --ext .ts", - "test:prettier": "prettier . --list-different", - "test:spelling": "cspell \"{README.md,src/**/*.ts}\"", - "test:tsc": "tsc -p tsconfig.dev.json", "test:node": "TS_NODE_PROJECT=./tsconfig.dev.json mocha", "test:browser": "karma start karma.conf.cjs", "proto": "rimraf src/proto/*.ts; protons src/proto/*.proto",