From e2dbd795f0dcd54e39c5922f2acb017d1eba45a4 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Sat, 30 Sep 2023 00:10:08 +0530 Subject: [PATCH] fix: Reduced pw worker to test sqlite test stability --- .github/workflows/ci-cd.yml | 112 ++++++++++++++++++------------------ 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 8d4e2b637d..b7bfb0eb53 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -103,34 +103,34 @@ jobs: pre-build-for-playwright: uses: ./.github/workflows/pre-build-for-playwright.yml - # playwright-mysql-1: - # needs: pre-build-for-playwright - # if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} - # uses: ./.github/workflows/playwright-test-workflow.yml - # with: - # db: mysql - # shard: 1 - # playwright-mysql-2: - # needs: pre-build-for-playwright - # if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} - # uses: ./.github/workflows/playwright-test-workflow.yml - # with: - # db: mysql - # shard: 2 - # playwright-mysql-3: - # needs: pre-build-for-playwright - # if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} - # uses: ./.github/workflows/playwright-test-workflow.yml - # with: - # db: mysql - # shard: 3 - # playwright-mysql-4: - # needs: pre-build-for-playwright - # if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} - # uses: ./.github/workflows/playwright-test-workflow.yml - # with: - # db: mysql - # shard: 4 + playwright-mysql-1: + needs: pre-build-for-playwright + if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} + uses: ./.github/workflows/playwright-test-workflow.yml + with: + db: sqlite + shard: 1 + playwright-mysql-2: + needs: pre-build-for-playwright + if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} + uses: ./.github/workflows/playwright-test-workflow.yml + with: + db: sqlite + shard: 2 + playwright-mysql-3: + needs: pre-build-for-playwright + if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} + uses: ./.github/workflows/playwright-test-workflow.yml + with: + db: sqlite + shard: 3 + playwright-mysql-4: + needs: pre-build-for-playwright + if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} + uses: ./.github/workflows/playwright-test-workflow.yml + with: + db: sqlite + shard: 4 playwright-sqlite-1: needs: pre-build-for-playwright if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} @@ -159,31 +159,31 @@ jobs: with: db: sqlite shard: 4 - # playwright-pg-shard-1: - # needs: pre-build-for-playwright - # if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} - # uses: ./.github/workflows/playwright-test-workflow.yml - # with: - # db: pg - # shard: 1 - # playwright-pg-shard-2: - # needs: pre-build-for-playwright - # if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} - # uses: ./.github/workflows/playwright-test-workflow.yml - # with: - # db: pg - # shard: 2 - # playwright-pg-shard-3: - # needs: pre-build-for-playwright - # if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} - # uses: ./.github/workflows/playwright-test-workflow.yml - # with: - # db: pg - # shard: 3 - # playwright-pg-shard-4: - # needs: pre-build-for-playwright - # if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} - # uses: ./.github/workflows/playwright-test-workflow.yml - # with: - # db: pg - # shard: 4 \ No newline at end of file + playwright-pg-shard-1: + needs: pre-build-for-playwright + if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} + uses: ./.github/workflows/playwright-test-workflow.yml + with: + db: sqlite + shard: 1 + playwright-pg-shard-2: + needs: pre-build-for-playwright + if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} + uses: ./.github/workflows/playwright-test-workflow.yml + with: + db: sqlite + shard: 2 + playwright-pg-shard-3: + needs: pre-build-for-playwright + if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} + uses: ./.github/workflows/playwright-test-workflow.yml + with: + db: sqlite + shard: 3 + playwright-pg-shard-4: + needs: pre-build-for-playwright + if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }} + uses: ./.github/workflows/playwright-test-workflow.yml + with: + db: sqlite + shard: 4 \ No newline at end of file