Skip to content

Commit

Permalink
Reintroduce input useRealFrontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Dirkse committed Nov 1, 2024
1 parent a39aa18 commit b932017
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/testing.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
pull_request:
workflow_dispatch:
inputs:
useRealFrontend:
description: If true, do not check out ladybug-frontend and test the frontend inside the backend
type: boolean
default: false
required: true
mergeMasterToBranch:
description: If true, the checkout-out backend is merged with the backend master
type: boolean
Expand Down Expand Up @@ -175,27 +180,24 @@ jobs:
run: pnpm run startServer &
working-directory: ladybug-frontend

- name: Run cypress with chrome browser
- name: Run cypress with chrome browser (bypass ladybug-frontend within backend)
uses: cypress-io/[email protected]
if: ${{ github.event.inputs.useRealFrontend != 'true' }}
with:
working-directory: ladybug-frontend
start: |
pnpm run startCicd
wait-on: "http://0.0.0.0:8090, http://0.0.0.0:4200"
wait-on-timeout: 1000
browser: chrome
# - name: Run cypress with firefox browser
# if: ${{ github.event.inputs.useRealFrontend != 'true' }}
# uses: cypress-io/[email protected]
# with:
# working-directory: ladybug-frontend
# start: |
# pnpm run startCicd
# wait-on: 'http://localhost:8090, http://localhost:4200'
# wait-on-timeout: 240
# browser: firefox
# config: screenshotsFolder=cypress/firefox/screenshots,videosFolder=cypress/firefox/videos

- name: Run cypress with chrome browser (bypass ladybug-frontend within backend)
uses: cypress-io/[email protected]
if: ${{ github.event.inputs.useRealFrontend == 'true' }}
with:
working-directory: ladybug-frontend
wait-on: "http://0.0.0.0:8090"
wait-on-timeout: 1000
browser: chrome
- name: Show files
run: tree -d -L 5 .
if: always()
Expand Down

0 comments on commit b932017

Please sign in to comment.