Skip to content

Commit f8185dd

Browse files
committed
Fix jest env override
Signed-off-by: Lin Wang <wonglam@amazon.com>
1 parent 5997957 commit f8185dd

6 files changed

+7
-7
lines changed

.github/workflows/alerting-release-e2e-workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
uses: ./.github/workflows/release-e2e-workflow-template.yml
2222
with:
2323
test-name: Alerting
24-
test-command: yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/alerting-dashboards-plugin/*' --env NO_COMMAND_LOG=1
24+
test-command: env CYPRESS_NO_COMMAND_LOG=1 yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/alerting-dashboards-plugin/*'

.github/workflows/anomaly-detection-release-e2e-workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
uses: ./.github/workflows/release-e2e-workflow-template.yml
2222
with:
2323
test-name: Anomaly Detection
24-
test-command: yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/anomaly-detection-dashboards-plugin/*' --env NO_COMMAND_LOG=1
24+
test-command: env CYPRESS_NO_COMMAND_LOG=1 yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/anomaly-detection-dashboards-plugin/*'

.github/workflows/cypress-workflow-bundle-snapshot-based.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: ./.github/workflows/release-e2e-workflow-template.yml
2525
with:
2626
test-name: Core Dashboards using Bundle Snapshot
27-
test-command: env CYPRESS_ML_COMMONS_DASHBOARDS_ENABLED=true CYPRESS_VISBUILDER_ENABLED=true CYPRESS_DATASOURCE_MANAGEMENT_ENABLED=true yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/**/*.js' --env NO_COMMAND_LOG=1
27+
test-command: env CYPRESS_NO_COMMAND_LOG=1 CYPRESS_ML_COMMONS_DASHBOARDS_ENABLED=true CYPRESS_VISBUILDER_ENABLED=true CYPRESS_DATASOURCE_MANAGEMENT_ENABLED=true yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/**/*.js'
2828
osd-serve-args: --data_source.enabled=true --vis_builder.enabled=true --ml_commons_dashboards.enabled=true
2929

3030
tests-without-security:
@@ -33,6 +33,6 @@ jobs:
3333
uses: ./.github/workflows/release-e2e-workflow-template.yml
3434
with:
3535
test-name: Core Dashboards using Bundle Snapshot
36-
test-command: env CYPRESS_ML_COMMONS_DASHBOARDS_ENABLED=true CYPRESS_VISBUILDER_ENABLED=true CYPRESS_DATASOURCE_MANAGEMENT_ENABLED=true yarn cypress:run-without-security --browser chromium --spec 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/**/*.js' --env NO_COMMAND_LOG=1
36+
test-command: env CYPRESS_NO_COMMAND_LOG=1 CYPRESS_ML_COMMONS_DASHBOARDS_ENABLED=true CYPRESS_VISBUILDER_ENABLED=true CYPRESS_DATASOURCE_MANAGEMENT_ENABLED=true yarn cypress:run-without-security --browser chromium --spec 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/**/*.js'
3737
osd-serve-args: --data_source.enabled=true --vis_builder.enabled=true --ml_commons_dashboards.enabled=true
3838
security-enabled: false

.github/workflows/index-management-release-e2e-workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
uses: ./.github/workflows/release-e2e-workflow-template.yml
2222
with:
2323
test-name: Index Management
24-
test-command: yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/index-management-dashboards-plugin/*' --env NO_COMMAND_LOG=1
24+
test-command: env CYPRESS_NO_COMMAND_LOG=1 yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/index-management-dashboards-plugin/*'

.github/workflows/security-analytics-release-e2e-workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
uses: ./.github/workflows/release-e2e-workflow-template.yml
2525
with:
2626
test-name: Security Analytics
27-
test-command: yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/security-analytics-dashboards-plugin/*' --env NO_COMMAND_LOG=1
27+
test-command: env CYPRESS_NO_COMMAND_LOG=1 yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/security-analytics-dashboards-plugin/*'

.github/workflows/security-release-e2e-workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
uses: ./.github/workflows/release-e2e-workflow-template.yml
2222
with:
2323
test-name: Security
24-
test-command: yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/security/*' --env NO_COMMAND_LOG=1
24+
test-command: env CYPRESS_NO_COMMAND_LOG=1 yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/plugins/security/*'

0 commit comments

Comments
 (0)