PromucFlow_constructor/app/client/Dockerfile-cypress-test
Arpit Mohan a9ed054cbb
Adding Github Action workflow to the client code base (#66)
This PR adds the build, test & package workflow to the client code base as well.

In order for us to run the Cypress tests, we also spin up a local server in a Docker container and run all our tests against that server. This ensures that our tests are faster to run as well.

We also introduce the concept of stubbing network requests by stubbing the API that fetches the property pane configuration from the server.

Results for the Cypress tests can be viewed at: https://dashboard.cypress.io/projects/eyxvp8/runs/
2020-07-16 11:20:46 +05:30

9 lines
256 B
Plaintext

# FROM cypress/browsers:node10.16.3-chrome80-ff73
FROM nginx:1.17.9-alpine
RUN apt update -y -q && \
apt-get install -y -q nginx gettext-base && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
yarn global add serve