The idea is to create a GHA in go-spacemesh repository which uses the local testnet tool to verify if the if the build will work with local testnet tool or now.
Solution
We need to create a pipeline with the following prerequisites installed:
The next step is to run the spacemesh-watch tool to monitor the network
The final step is to write a script that constantly pulls logs from spacemesh-watch container and checks for any error message. spacemesh-watch prints logs in JSON format so it will be easier to validate it. The script will run for few mins and if it detects no errors then it will exist successfully. And if it detects error then it will throw exception.
Motivation
The idea is to create a GHA in
go-spacemesh
repository which uses the local testnet tool to verify if the if the build will work with local testnet tool or now.Solution
We need to create a pipeline with the following prerequisites installed:
Then the pipeline will compose of mainly 4 steps.