Update the playwright workflow for the PRs to omit the nightly only tests (#20831)

This commit is contained in:
Aniket Katkar 2025-04-15 15:04:18 +05:30 committed by GitHub
parent 72b4ac486d
commit aafb0514a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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