mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
9bfb4f3802
* 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
26 lines
627 B
YAML
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
|