-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martijn Dirkse
committed
Nov 1, 2024
1 parent
a39aa18
commit b932017
Showing
1 changed file
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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() | ||
|