-
Install
act
https://github.com/nektos/act -
Add
- run: sleep 1h
line tomain.yml
. This will prevent docker container from exiting -
Execute
act pull_request
-
In a separate terminal attach to a running container
docker exec -it act-Main-Workflow-build bash
-
Inside running container update
$PATH
env to access node and yarnexport PATH="$PATH:/opt/hostedtoolcache/node/16.15.0/x64/bin/" node -v v16.15.0
-
To kill a running container:
docker kill act-Main-Workflow-build
-
Create test event file
test.json
{ "action": "workflow_dispatch", "inputs": { "synthetix_version": "2.71.0", "monorepo_version": "" } }
-
Add
- run: sleep 1h
line toupdateDependency.yml
(where appropriate). This will prevent docker container from exiting -
Run
act
act workflow_dispatch --eventpath test.json
-
In a separate terminal attach to a running container
docker exec -it act-Publish-Library-Update-synthetix-in-contracts-interface bash
-
Inside running container update
$PATH
env to access node and npmexport PATH="$PATH:/opt/hostedtoolcache/node/16.15.0/x64/bin/" node -v v16.15.0
-
To kill a running container:
docker kill act-Publish-Library-Update-synthetix-in-contracts-interface