Skip to content

Commit

Permalink
Update Cypress CI workflows to introduce parallel execution
Browse files Browse the repository at this point in the history
  • Loading branch information
preetsshah committed Dec 11, 2023
1 parent 83abc5e commit ac8d615
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/cypress-integration-tests-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ name: MySQL Cypress Integration Tests

on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'openmetadata-docs/**'
schedule:
- cron: '30 0 * * *'
pull_request:
Expand All @@ -30,6 +25,8 @@ on:
- synchronize
- reopened
- ready_for_review
paths-ignore:
- 'openmetadata-docs/**'

permissions:
contents: read
Expand All @@ -41,12 +38,15 @@ concurrency:
jobs:
cypress-ci-mysql:
if: |
github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'push'
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)
Expand Down Expand Up @@ -130,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}}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/cypress-integration-tests-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ name: PostgreSQL Cypress Integration Tests

on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'openmetadata-docs/**'
schedule:
- cron: '30 0 * * *'
pull_request:
Expand All @@ -30,6 +25,8 @@ on:
- synchronize
- reopened
- ready_for_review
paths-ignore:
- 'openmetadata-docs/**'

permissions:
contents: read
Expand All @@ -41,12 +38,15 @@ concurrency:
jobs:
cypress-ci-postgresql:
if: |
github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'push'
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)
Expand Down Expand Up @@ -130,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}}
Expand Down

0 comments on commit ac8d615

Please sign in to comment.