Skip to content

Commit

Permalink
update e2e config
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Apr 8, 2024
1 parent 923b432 commit 9b67b18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/ci-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,26 @@ jobs:
RUN_SERVICES: true
E2E: true
TZ: Australia/Sydney
CYPRESS_SCREENSHOTS_FOLDER: /tmp/cypress
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'server/requirements.txt'
- name: Setup Environment
run: ./scripts/ci-install.sh
- name: Build Client
- run: |
npm install
npm build
docker compose up -d
./ci-wait-for-services.sh
working-directory: ./e2e
run: npm run build
- name: Start Services
run: ./scripts/ci-start-services.sh
- name: E2E Suite A
if: matrix.e2e == 'a'
working-directory: ./e2e
run: npm run cypress-ci -- --spec "cypress/e2e/events/*.cy.ts"
env:
CYPRESS_SCREENSHOTS_FOLDER: /tmp/cypress
- name: E2E Suite B
if: matrix.e2e == 'b'
working-directory: ./e2e
run: npm run cypress-ci -- --spec "cypress/e2e/!(events)/*.cy.ts|cypress/e2e/workqueue.cy.ts"
env:
CYPRESS_SCREENSHOTS_FOLDER: /tmp/cypress
- name: Upload screenshots
if: ${{ failure() }}
uses: actions/upload-artifact@v2
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci-wait-for-services.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

while ! curl -sfo /dev/null 'http://localhost:9200/'; do echo -n '.' && sleep .5; done

0 comments on commit 9b67b18

Please sign in to comment.