diff --git a/.bamboo/E2E-tests/cleanup.sh b/.ci/E2E-tests/cleanup.sh similarity index 100% rename from .bamboo/E2E-tests/cleanup.sh rename to .ci/E2E-tests/cleanup.sh diff --git a/.bamboo/E2E-tests/execute.sh b/.ci/E2E-tests/execute.sh similarity index 95% rename from .bamboo/E2E-tests/execute.sh rename to .ci/E2E-tests/execute.sh index 92de1a959efd..971d05dea8a6 100755 --- a/.bamboo/E2E-tests/execute.sh +++ b/.ci/E2E-tests/execute.sh @@ -4,10 +4,10 @@ DB=$1 if [ "$DB" = "mysql" ]; then COMPOSE_FILE="cypress-E2E-tests-mysql.yml" -elif [ "$DB" = "postgresql" ]; then +elif [ "$DB" = "postgres" ]; then COMPOSE_FILE="cypress-E2E-tests-postgres.yml" else - echo "Invalid database type. Please choose either mysql or postgresql." + echo "Invalid database type. Please choose either mysql or postgres." exit 1 fi diff --git a/.bamboo/migration-check/cleanup.sh b/.ci/migration-check/cleanup.sh similarity index 100% rename from .bamboo/migration-check/cleanup.sh rename to .ci/migration-check/cleanup.sh diff --git a/.bamboo/migration-check/execute.sh b/.ci/migration-check/execute.sh similarity index 94% rename from .bamboo/migration-check/execute.sh rename to .ci/migration-check/execute.sh index 9b9ecdceb41f..50c42043f1ec 100755 --- a/.bamboo/migration-check/execute.sh +++ b/.ci/migration-check/execute.sh @@ -4,10 +4,10 @@ DB=$1 if [ "$DB" = "mysql" ]; then COMPOSE_FILE="artemis-migration-check-mysql.yml" -elif [ "$DB" = "postgresql" ]; then +elif [ "$DB" = "postgres" ]; then COMPOSE_FILE="artemis-migration-check-postgres.yml" else - echo "Invalid database type. Please choose either mysql or postgresql." + echo "Invalid database type. Please choose either mysql or postgres." exit 1 fi diff --git a/docker/cypress-E2E-tests-mysql.yml b/docker/cypress-E2E-tests-mysql.yml index 02a040a68dcd..835b6880e033 100644 --- a/docker/cypress-E2E-tests-mysql.yml +++ b/docker/cypress-E2E-tests-mysql.yml @@ -44,7 +44,7 @@ services: environment: CYPRESS_DB_TYPE: "MySQL" SORRY_CYPRESS_PROJECT_ID: "artemis-mysql" - command: sh -c "cd /app/artemis/src/test/cypress && chmod 777 /root && npm ci && npm run cypress:setup && (npm run cypress:record:mysql & sleep 60 && npm run cypress:record:mysql & wait)" + command: sh -c "cd /app/artemis/src/test/cypress && chmod 777 /root && npm ci --legacy-peer-deps && npm run cypress:setup && (npm run cypress:record:mysql & sleep 60 && npm run cypress:record:mysql & wait)" networks: artemis: diff --git a/docker/cypress-E2E-tests-postgres.yml b/docker/cypress-E2E-tests-postgres.yml index e2396270d899..3d24c792a177 100644 --- a/docker/cypress-E2E-tests-postgres.yml +++ b/docker/cypress-E2E-tests-postgres.yml @@ -44,7 +44,7 @@ services: environment: CYPRESS_DB_TYPE: "Postgres" SORRY_CYPRESS_PROJECT_ID: "artemis-postgres" - command: sh -c "cd /app/artemis/src/test/cypress && chmod 777 /root && npm ci && npm run cypress:setup && (npm run cypress:record:postgres & sleep 60 && npm run cypress:record:postgres & wait)" + command: sh -c "cd /app/artemis/src/test/cypress && chmod 777 /root && npm ci --legacy-peer-deps && npm run cypress:setup && (npm run cypress:record:postgres & sleep 60 && npm run cypress:record:postgres & wait)" networks: artemis: diff --git a/src/test/cypress/package.json b/src/test/cypress/package.json index 12a8aded34da..e8a82103f70a 100644 --- a/src/test/cypress/package.json +++ b/src/test/cypress/package.json @@ -30,7 +30,7 @@ "cypress:open": "cypress open", "cypress:run": "cypress run --browser=chrome", "cypress:setup": "cypress install && cypress run --quiet --spec init/ImportUsers.cy.ts", - "cypress:record:mysql": "npx cypress-cloud run --cloud-debug --parallel --record --ci-build-id \"${SORRY_CYPRESS_BRANCH_NAME} #${SORRY_CYPRESS_BUILD_ID} ${SORRY_CYPRESS_RERUN_COUNT} (MySQL)\"", + "cypress:record:mysql": "npx cypress-cloud run --parallel --record --ci-build-id \"${SORRY_CYPRESS_BRANCH_NAME} #${SORRY_CYPRESS_BUILD_ID} ${SORRY_CYPRESS_RERUN_COUNT} (MySQL)\"", "cypress:record:postgres": "npx cypress-cloud run --parallel --record --ci-build-id \"${SORRY_CYPRESS_BRANCH_NAME} #${SORRY_CYPRESS_BUILD_ID} ${SORRY_CYPRESS_RERUN_COUNT} (Postgres)\"", "update": "npm-upgrade" }