buck2
buck2 copied to clipboard
how can I pass environment variables to test scripts?
I need to be able to access a specific environment variable (it's a Percy API key) in an invocation of buck test //... in GitHub actions, but I'm having some trouble. It doesn't look like there's a way to forward an environment variable from the containing environment? Is there, and I'm just missing something?
Something like this should work:
buck2 test //... -- --env FOO=$FOO
Ah! Yes, that does it. Are those extra args documented somewhere?
I'm afraid not. It should be.
I'll add to buck2 test --help.