From aafb0514a5f85a6eba94ec8634964452822fcdbb Mon Sep 17 00:00:00 2001 From: Aniket Katkar Date: Tue, 15 Apr 2025 15:04:18 +0530 Subject: [PATCH] Update the playwright workflow for the PRs to omit the nightly only tests (#20831) --- .github/workflows/playwright-mysql-e2e.yml | 4 ++-- .github/workflows/playwright-postgresql-e2e.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/playwright-mysql-e2e.yml b/.github/workflows/playwright-mysql-e2e.yml index 0d60fd96d53..6a58cae3650 100644 --- a/.github/workflows/playwright-mysql-e2e.yml +++ b/.github/workflows/playwright-mysql-e2e.yml @@ -107,9 +107,9 @@ jobs: working-directory: openmetadata-ui/src/main/resources/ui/ run: | if [[ "${{ contains(github.event.pull_request.changed_files, 'ingestion/') }}" == "true" ]]; then - npx playwright test --grep @ingestion --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} + npx playwright test --grep-invert @nightlyOnlyTests --grep @ingestion --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} else - npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} + npx playwright test --grep-invert @nightlyOnlyTests --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} fi env: PLAYWRIGHT_IS_OSS: true diff --git a/.github/workflows/playwright-postgresql-e2e.yml b/.github/workflows/playwright-postgresql-e2e.yml index f4065c72a3c..cf3e49d9e41 100644 --- a/.github/workflows/playwright-postgresql-e2e.yml +++ b/.github/workflows/playwright-postgresql-e2e.yml @@ -106,9 +106,9 @@ jobs: working-directory: openmetadata-ui/src/main/resources/ui/ run: | if [[ "${{ contains(github.event.pull_request.changed_files, 'ingestion/') }}" == "true" ]]; then - npx playwright test --grep @ingestion --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} + npx playwright test --grep-invert @nightlyOnlyTests --grep @ingestion --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} else - npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} + npx playwright test --grep-invert @nightlyOnlyTests --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} fi env: PLAYWRIGHT_IS_OSS: true