k6-action
k6-action copied to clipboard
support of bundled xk6-browser
Hello k6! I wonder if github action is supposed to run a test without a requirement to install the xk6-browser.
Uncaught (in promise) GoError: launching browser: exec: no command\n\tat github.com/grafana/xk6-browser/browser.mapBrowserType.func1
Thanks!
Hi @olegchorny!
Can you send us a reproducible step so we can investigate more? Currently, we don't have a k6 docker image yet which contains a browser, so this might be the reason your test is failing. See https://github.com/grafana/k6/issues/2914 for more information.
Hi @olegchorny!
Can you send us a reproducible step so we can investigate more? Currently, we don't have a k6 docker image yet which contains a browser, so this might be the reason your test is failing. See grafana/k6#2914 for more information.
right, I managed to setup the job by installing the required bits and invoke k6 run command. Thanks!
I wonder if github action is supposed to run a test without a requirement to install the xk6-browser.
I think so!
For reference while we wait for the implementation, you can download k6 and enable the required settings to trigger browser tests as shown in this example.
This is now supported in the new GitHub action: https://github.com/grafana/setup-k6-action (browser
: true)