Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Apr 8, 2024
1 parent 6c43464 commit 27c657e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/ci-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: "CI-E2E"

on: [push, pull_request]

defaults:
run:
working-directory: ./e2e

jobs:
e2e:
runs-on: ubuntu-latest
Expand All @@ -21,20 +25,22 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: |
working-directory: ./
- name: Build Server
run: |
docker compose up -d
- name: Build Client
run:
npm install
npm run build
python -m http.server -d dist 9000 &
working-directory: ./e2e
- run: ./scripts/ci-wait-for-services.sh
- run: ./ci-wait-for-services.sh
working-directory: scripts
- name: E2E Suite A
if: matrix.e2e == 'a'
working-directory: ./e2e
run: npm run cypress-ci -- --spec "cypress/e2e/events/*.cy.ts"
- 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"
- name: Upload screenshots
if: ${{ failure() }}
Expand Down

0 comments on commit 27c657e

Please sign in to comment.