Skip to content

Commit a8dd96d

Browse files
ci: Remove babel.config.js before executing cypress
Cypress seems trying to use babel when it detects babel.config.js file which is problematic because it should not need to transpile the UI code at this stage as it has already been transpiled and is statically serve in the CI.
1 parent d94166f commit a8dd96d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eve/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ models:
503503
TARGET_URL: "https://192.168.1.254:8443"
504504
command: >
505505
ssh -F ssh_config bastion --
506-
"cd metalk8s/ui &&
506+
"cd metalk8s/ui && rm -rf babel.config.js &&
507507
CYPRESS_BASE_URL=$TARGET_URL npm run test:$TEST_FILTER"
508508
workdir: *terraform_workdir
509509
haltOnFailure: true
@@ -1268,7 +1268,8 @@ stages:
12681268
workdir: build/ui
12691269
env:
12701270
CYPRESS_BASE_URL: http://localhost:80
1271-
command: >
1271+
command: |
1272+
rm -rf babel.config.js
12721273
npm run test:integration --no-update-notifier
12731274
haltOnFailure: true
12741275
- ShellCommand:

0 commit comments

Comments
 (0)