0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/.github/workflows/e2e.yml
James Greenhill 9bfb4f3802
Wait for PostHog to start serving requests before running cypress (#920)
* Work towards more reliable run of cypress

* health endpoint

* don't use requests lib

* update copy a bit since we are not waiting for frontend to build
2020-06-04 12:42:09 +01:00

26 lines
627 B
YAML

name: e2e
on: [pull_request]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
# Install Node.js
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn install
- name: Prepare server
run: docker-compose -f docker-compose.e2e.yml up -d
- name: Check running containers
run: docker ps -a
- name: Check logs
run: docker logs posthog_server
- name: Cypress run
run: |
python3 cypress/wait.py
yarn run cypress run --config-file cypress.json