diff options
| author | Joey Jiao <quic_jiangenj@quicinc.com> | 2024-07-12 11:21:10 +0800 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-08-29 14:28:35 +0000 |
| commit | cf4e576ab85e80354c6f5ac40f22a92afb199bcc (patch) | |
| tree | 0b1a55b82839031ef347f285d9f884941a605044 /docs | |
| parent | e46dcff2767435630f9f28e4e5ea141309798801 (diff) | |
all: add npm package to syz-env
act(https://github.com/nektos/act) is used to build github workflow locally.
When running `act -j build` in local host, it reports:
exec failed: unable to start container process: exec: "node": executable file
not found in $PATH: unknown.
Adding nodejs package can fix the build error.
Updated docs with act usage too.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/contributing.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/contributing.md b/docs/contributing.md index e4e6a2733..4d1278a1c 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -150,3 +150,16 @@ and then pull the image and retag it to the name expected by `syz-env`: docker pull docker.pkg.github.com/google/syzkaller/env docker tag docker.pkg.github.com/google/syzkaller/env gcr.io/syzkaller/env ``` + +### Using [act](https://github.com/nektos/act) +.github/workflows has more tests compared to `syz-env make presubmit`. To have the same tests as the workflow, we can run these workflow jobs locally. +``` +# install act +make act +# list all jobs +bin/act -l +# run all jobs +bin/act +# run job with name build +bin/act -j build +``` |
