Skip to content

Commit

Permalink
added graph test -d docker note for GitHub CI (graphprotocol#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchhs12 authored Jun 4, 2024
1 parent fb314b8 commit b2d199a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/pages/en/developing/unit-testing-framework.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ graph test path/to/file.test.ts

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.

`graph test -d` forces `docker run` to run with flag `-t`. This must be removed to run inside non-interactive environments (like GitHub CI).

❗ If you have previously ran `graph test` you may encounter the following error during docker build:

```sh
Expand Down

0 comments on commit b2d199a

Please sign in to comment.