mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-27 09:55:36 +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
|
name: MySQL Cypress Integration Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
schedule:
|
||||||
branches:
|
- cron: '30 0 * * *'
|
||||||
- main
|
pull_request:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- ready_for_review
|
||||||
paths:
|
paths:
|
||||||
- 'openmetadata-docs/**'
|
- 'openmetadata-docs/**'
|
||||||
|
|
||||||
@ -23,7 +29,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
job: [0, 1, 2]
|
job: [1, 2, 3, 4]
|
||||||
environment: test
|
environment: test
|
||||||
steps:
|
steps:
|
||||||
- run: 'echo "Step is not required"'
|
- run: 'echo "Step is not required"'
|
@ -16,9 +16,15 @@ name: MySQL Cypress Integration Tests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
schedule:
|
||||||
branches:
|
- cron: '30 0 * * *'
|
||||||
- main
|
pull_request:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- ready_for_review
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'openmetadata-docs/**'
|
- 'openmetadata-docs/**'
|
||||||
|
|
||||||
@ -31,7 +37,16 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cypress-ci-mysql:
|
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
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
parallel-machine: [1, 2, 3, 4]
|
||||||
environment: test
|
environment: test
|
||||||
steps:
|
steps:
|
||||||
- name: Free Disk Space (Ubuntu)
|
- name: Free Disk Space (Ubuntu)
|
||||||
@ -115,7 +130,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
install-command: yarn --frozen-lockfile --silent --ignore-scripts
|
install-command: yarn --frozen-lockfile --silent --ignore-scripts
|
||||||
record: true
|
record: true
|
||||||
parallel: false
|
parallel: true
|
||||||
working-directory: openmetadata-ui/src/main/resources/ui/
|
working-directory: openmetadata-ui/src/main/resources/ui/
|
||||||
wait-on: 'http://localhost:8585'
|
wait-on: 'http://localhost:8585'
|
||||||
group: cypress-ci-mysql-oss-${{ github.run_id }}-${{github.run_attempt}}
|
group: cypress-ci-mysql-oss-${{ github.run_id }}-${{github.run_attempt}}
|
||||||
|
@ -12,9 +12,15 @@
|
|||||||
name: PostgreSQL Cypress Integration Tests
|
name: PostgreSQL Cypress Integration Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
schedule:
|
||||||
branches:
|
- cron: '30 0 * * *'
|
||||||
- main
|
pull_request:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- ready_for_review
|
||||||
paths:
|
paths:
|
||||||
- 'openmetadata-docs/**'
|
- 'openmetadata-docs/**'
|
||||||
|
|
||||||
@ -23,7 +29,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
job: [0, 1, 2]
|
job: [1, 2, 3, 4]
|
||||||
environment: test
|
environment: test
|
||||||
steps:
|
steps:
|
||||||
- run: 'echo "Step is not required"'
|
- run: 'echo "Step is not required"'
|
@ -16,9 +16,15 @@ name: PostgreSQL Cypress Integration Tests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
schedule:
|
||||||
branches:
|
- cron: '30 0 * * *'
|
||||||
- main
|
pull_request:
|
||||||
|
types:
|
||||||
|
- labeled
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- ready_for_review
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'openmetadata-docs/**'
|
- 'openmetadata-docs/**'
|
||||||
|
|
||||||
@ -31,7 +37,16 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cypress-ci-postgresql:
|
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
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
parallel-machine: [1, 2, 3, 4]
|
||||||
environment: test
|
environment: test
|
||||||
steps:
|
steps:
|
||||||
- name: Free Disk Space (Ubuntu)
|
- name: Free Disk Space (Ubuntu)
|
||||||
@ -115,7 +130,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
install-command: yarn --frozen-lockfile --silent --ignore-scripts
|
install-command: yarn --frozen-lockfile --silent --ignore-scripts
|
||||||
record: true
|
record: true
|
||||||
parallel: false
|
parallel: true
|
||||||
working-directory: openmetadata-ui/src/main/resources/ui/
|
working-directory: openmetadata-ui/src/main/resources/ui/
|
||||||
wait-on: 'http://localhost:8585'
|
wait-on: 'http://localhost:8585'
|
||||||
group: cypress-ci-psql-oss-${{ github.run_id }}-${{github.run_attempt}}
|
group: cypress-ci-psql-oss-${{ github.run_id }}-${{github.run_attempt}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user