mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 17:04:54 +00:00
Update Cypress CI workflows for issue-14324 (#14334)
* Update Cypress CI workflows for issue-14324 * Update Cypress CI workflows to introduce parallel execution * Update cypress skip CI workflows
This commit is contained in:
parent
9463a7b122
commit
89a861ea54
@ -12,9 +12,15 @@
|
||||
name: MySQL Cypress Integration Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: '30 0 * * *'
|
||||
pull_request:
|
||||
types:
|
||||
- labeled
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
- ready_for_review
|
||||
paths:
|
||||
- 'openmetadata-docs/**'
|
||||
|
||||
@ -23,7 +29,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
job: [0, 1, 2]
|
||||
job: [1, 2, 3, 4]
|
||||
environment: test
|
||||
steps:
|
||||
- run: 'echo "Step is not required"'
|
@ -16,9 +16,15 @@ name: MySQL Cypress Integration Tests
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: '30 0 * * *'
|
||||
pull_request:
|
||||
types:
|
||||
- labeled
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
- ready_for_review
|
||||
paths-ignore:
|
||||
- 'openmetadata-docs/**'
|
||||
|
||||
@ -31,7 +37,16 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
cypress-ci-mysql:
|
||||
if: |
|
||||
github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
||||
|| ( github.event_name == 'pull_request'
|
||||
&& contains(github.event.pull_request.labels.*.name, 'e2e')
|
||||
&& github.event.pull_request.draft == false
|
||||
)
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
parallel-machine: [1, 2, 3, 4]
|
||||
environment: test
|
||||
steps:
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
@ -115,7 +130,7 @@ jobs:
|
||||
with:
|
||||
install-command: yarn --frozen-lockfile --silent --ignore-scripts
|
||||
record: true
|
||||
parallel: false
|
||||
parallel: true
|
||||
working-directory: openmetadata-ui/src/main/resources/ui/
|
||||
wait-on: 'http://localhost:8585'
|
||||
group: cypress-ci-mysql-oss-${{ github.run_id }}-${{github.run_attempt}}
|
||||
|
@ -12,9 +12,15 @@
|
||||
name: PostgreSQL Cypress Integration Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: '30 0 * * *'
|
||||
pull_request:
|
||||
types:
|
||||
- labeled
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
- ready_for_review
|
||||
paths:
|
||||
- 'openmetadata-docs/**'
|
||||
|
||||
@ -23,7 +29,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
job: [0, 1, 2]
|
||||
job: [1, 2, 3, 4]
|
||||
environment: test
|
||||
steps:
|
||||
- run: 'echo "Step is not required"'
|
@ -16,9 +16,15 @@ name: PostgreSQL Cypress Integration Tests
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: '30 0 * * *'
|
||||
pull_request:
|
||||
types:
|
||||
- labeled
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
- ready_for_review
|
||||
paths-ignore:
|
||||
- 'openmetadata-docs/**'
|
||||
|
||||
@ -31,7 +37,16 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
cypress-ci-postgresql:
|
||||
if: |
|
||||
github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
||||
|| ( github.event_name == 'pull_request'
|
||||
&& contains(github.event.pull_request.labels.*.name, 'e2e')
|
||||
&& github.event.pull_request.draft == false
|
||||
)
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
parallel-machine: [1, 2, 3, 4]
|
||||
environment: test
|
||||
steps:
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
@ -115,7 +130,7 @@ jobs:
|
||||
with:
|
||||
install-command: yarn --frozen-lockfile --silent --ignore-scripts
|
||||
record: true
|
||||
parallel: false
|
||||
parallel: true
|
||||
working-directory: openmetadata-ui/src/main/resources/ui/
|
||||
wait-on: 'http://localhost:8585'
|
||||
group: cypress-ci-psql-oss-${{ github.run_id }}-${{github.run_attempt}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user