"The moduleSpecifier "//scripts//Performance_Tests.js" couldn’t be found on local disk. Make sure that you’ve specified the right path to the file. If you’re running k6 using the Docker image make sure you have mounted the local directory (-v /local/path/:/inside/docker/path) containing your script and modules so that they’re accessible by k6 from inside of the container
The docker compose command works fine on my machine but only on Github actions I see this error
this is my folder structure
This is the docker compose
Can someone help pls? Thanks!
Hi @21.prash , welcome to the community forum!
Is there a reason why you are having two /
in the path of the script specifically. I have no idea if this is the problem, but it seems strange.
Hllo @mstoykov Thank you for helping me! I appreciate!
I tried replacing ‘//’ with the ‘/’ however it still fails with the same error.
Can you check in the github actions that you can actually access the file - you can run a different docker image and having the command be cat /scripts/...
I have not used docker compose in github actions and knowing how well running docker in docker or similar worked in the past I expect there might be qutie a lot of problems.
So lets try to figure out if this is not a github actions ↔ docker compose issue.
Hello @mstoykov - you were right. I used another image and then verified if the file was accessible and it wasn’t.
@21.prash I would go and try to ask why that is on github support channel or whatever you use docker-compose for in github actions.
But I would argue this means that this isn’t a k6 issue
Good luck!