From cf4e576ab85e80354c6f5ac40f22a92afb199bcc Mon Sep 17 00:00:00 2001 From: Joey Jiao Date: Fri, 12 Jul 2024 11:21:10 +0800 Subject: 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. --- docs/contributing.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs') 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 +``` -- cgit mrf-deployment