Skip to content

Commit b2d199a

Browse files
authored
added graph test -d docker note for GitHub CI (#677)
1 parent fb314b8 commit b2d199a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

website/pages/en/developing/unit-testing-framework.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ graph test path/to/file.test.ts
116116

117117
From `graph-cli 0.25.2`, the `graph test` command supports running `matchstick` in a docker container with the `-d` flag. The docker implementation uses [bind mount](https://docs.docker.com/storage/bind-mounts/) so it does not have to rebuild the docker image every time the `graph test -d` command is executed. Alternatively you can follow the instructions from the [matchstick](https://github.com/LimeChain/matchstick#docker-) repository to run docker manually.
118118

119+
`graph test -d` forces `docker run` to run with flag `-t`. This must be removed to run inside non-interactive environments (like GitHub CI).
120+
119121
❗ If you have previously ran `graph test` you may encounter the following error during docker build:
120122

121123
```sh

0 commit comments

Comments
 (0)