How to run automation testing on localhost in circleci

I am using testcafe framework for testing web app. i want to test it before deployment. how i can run automation test on circleci server.

I doubt anyone will be able to help, with this level of brevity.