You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: use nwaku/go-waku docker images instead of building binaries (#1259)
* merge: master
* fix: CI
* use: js script instead of shell script to run precheck and mocha
* use `console.log` instead of `debug.log` for `run-tests.js`
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+8-11
Original file line number
Diff line number
Diff line change
@@ -11,23 +11,21 @@ This project board is to prioritize the work of core contributors so do not be d
11
11
Do note that we have a [CI](./.github/workflows/ci.yml) powered by GitHub Action.
12
12
To help ensure your PR passes, just run before committing:
13
13
14
-
-`npm run fix`: To format your code,
15
-
-`npm run test`: To run all tests, including lint checks.
16
-
14
+
-`npm run fix`: To format your code,
15
+
-`npm run check`: To check your code for linting errors,
16
+
-`npm run test`: To run all tests
17
17
18
18
## Build & Test
19
19
20
20
To build and test this repository, you need:
21
-
22
-
-[Node.js & npm](https://nodejs.org/en/).
23
-
- Chrome (for browser testing).
24
-
- g++ & make (to build nim-waku)
21
+
22
+
-[Node.js & npm](https://nodejs.org/en/).
23
+
- Chrome (for browser testing).
25
24
26
25
To ensure interoperability with [nim-waku](https://github.com/status-im/nim-waku/), some tests are run against a nim-waku node.
27
-
This is why `nim-waku` is present as a [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules), which itself contain several submodules.
28
-
At this stage, it is not possible to exclude nim-waku tests, hence `git submodule update --init --recursive` is run before testing (see [`pretest` script](https://github.com/status-im/js-waku/blob/master/package.json)).
26
+
This is why the relevant docker images for the node is pulled as part of the `pretest` script that runs before `npm run test`.
29
27
30
-
If you do not want to run `npm run test`, you can still build nim-waku by running `npm run pretest`.
28
+
If you do not want to run `npm run test`, you can still pull the relevant nim-waku docker image by running `npm run pretest`.
31
29
32
30
Note that we run tests in both NodeJS and browser environments (using [karma](https://karma-runner.github.io/)).
33
31
Files named `*.node.spec.ts` are only run in NodeJS environment;
@@ -62,4 +60,3 @@ Commit messages should never contain any `@` mentions (usernames prefixed with "
62
60
63
61
Please refer to the [Git manual](https://git-scm.com/doc) for more information
0 commit comments