Replace build logic with k6foundry library. Also, refactors the build argument parsing logic to facilitate testing.
This change required upgrading to golang 1.22 (required by k6foundry).
Breaking change in xk6.Build library: the Build method no longer completes missing attributes using environment variables. The function FromOSEnv can be used to create Builder from the environment variable and then override or complete its attributes. See README.md for an example
Replace build logic with k6foundry library. Also, refactors the build argument parsing logic to facilitate testing.
This change required upgrading to golang
1.22
(required byk6foundry
).