Currently, I have a requirement to add accessibility testing on GitHub CI action so that every pull request it can be validated. After doing some research, I came to know that we can add below command.
npm install -g @axe-core/cli
axe http://localhost:9000 --exit
However, I am encountering below error when ci action run.
Error: fetchError: request to http://localhost:9000 failed, reason: connect ECONNREFUSED 127.0.0.1:9000
I have tried few options to solve this issue but no success. Tried to change the port, run the command in vs terminal but having same issue.
Can anyone please help me on this ? Please note, I am using it in vue3 application.