Skip to content

Commit

Permalink
Update cypress workflows (#14513)
Browse files Browse the repository at this point in the history
* Update helm-values documentation for v1.2.4

* Update Cypress CI workflows

* Remove projectId from cypress.config.ts

* Update Cypress workflows to use output variables

* Update step ID

* Update Cypress CI workflows' Project condition
  • Loading branch information
preetsshah authored Jan 4, 2024
1 parent f611a50 commit 277ef6b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cypress-integration-tests-mysql-skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
name: MySQL Cypress Integration Tests

on:
schedule:
- cron: '30 0 * * *'
pull_request_target:
types:
- labeled
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/cypress-integration-tests-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ jobs:
parallel-machine: [1, 2, 3, 4]
environment: test
steps:
- name: Set Project ID Environment variable
id: cypress-project-id
run: |
if [ "${{ github.event_name }}" == "schedule" ]; then
echo "PROJECT_ID=${{ secrets.CYPRESS_SCHEDULE_PROJECT_ID }}" >> $GITHUB_OUTPUT
else
echo "PROJECT_ID=${{ secrets.CYPRESS_PR_PROJECT_ID }}" >> $GITHUB_OUTPUT
fi
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
Expand Down Expand Up @@ -144,6 +153,7 @@ jobs:
CYPRESS_SNOWFLAKE_ACCOUNT: ${{ secrets.TEST_SNOWFLAKE_ACCOUNT }}
CYPRESS_SNOWFLAKE_DATABASE: ${{ secrets.TEST_SNOWFLAKE_DATABASE }}
CYPRESS_SNOWFLAKE_WAREHOUSE: ${{ secrets.TEST_SNOWFLAKE_WAREHOUSE }}
CYPRESS_PROJECT_ID: ${{ steps.cypress-project-id.outputs.PROJECT_ID }}
CYPRESS_BQ_PRIVATE_KEY: ${{ secrets.TEST_BQ_PRIVATE_KEY }}
CYPRESS_BQ_PROJECT_ID: ${{ secrets.TEST_BQ_PROJECT_ID }}
CYPRESS_BQ_PROJECT_ID_TAXONOMY: ${{ secrets.TEST_BQ_PROJECT_ID_TAXONOMY }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
name: PostgreSQL Cypress Integration Tests

on:
schedule:
- cron: '30 0 * * *'
pull_request_target:
types:
- labeled
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/cypress-integration-tests-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ jobs:
parallel-machine: [1, 2, 3, 4]
environment: test
steps:
- name: Set Project ID Environment variable
id: cypress-project-id
run: |
if [ "${{ github.event_name }}" == "schedule" ]; then
echo "PROJECT_ID=${{ secrets.CYPRESS_SCHEDULE_PROJECT_ID }}" >> $GITHUB_OUTPUT
else
echo "PROJECT_ID=${{ secrets.CYPRESS_PR_PROJECT_ID }}" >> $GITHUB_OUTPUT
fi
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
Expand Down Expand Up @@ -144,6 +153,7 @@ jobs:
CYPRESS_SNOWFLAKE_ACCOUNT: ${{ secrets.TEST_SNOWFLAKE_ACCOUNT }}
CYPRESS_SNOWFLAKE_DATABASE: ${{ secrets.TEST_SNOWFLAKE_DATABASE }}
CYPRESS_SNOWFLAKE_WAREHOUSE: ${{ secrets.TEST_SNOWFLAKE_WAREHOUSE }}
CYPRESS_PROJECT_ID: ${{ steps.cypress-project-id.outputs.PROJECT_ID }}
CYPRESS_BQ_PRIVATE_KEY: ${{ secrets.TEST_BQ_PRIVATE_KEY }}
CYPRESS_BQ_PROJECT_ID: ${{ secrets.TEST_BQ_PROJECT_ID }}
CYPRESS_BQ_PRIVATE_KEY_ID: ${{ secrets.TEST_BQ_PRIVATE_KEY_ID }}
Expand Down
1 change: 0 additions & 1 deletion openmetadata-ui/src/main/resources/ui/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { defineConfig } from 'cypress';
import plugins from './cypress/plugins/index.js';

export default defineConfig({
projectId: 'a9yxci',
viewportWidth: 1240,
viewportHeight: 660,
watchForFileChanges: false,
Expand Down

0 comments on commit 277ef6b

Please sign in to comment.