Skip to content

Commit 84511a5

Browse files
chore(ci): run ingestion tests for ingestion changes (#20225)
1 parent a313e0e commit 84511a5

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/playwright-mysql-e2e.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ jobs:
104104
run: npx playwright@1.48.2 install --with-deps
105105
- name: Run Playwright tests
106106
working-directory: openmetadata-ui/src/main/resources/ui/
107-
run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
107+
run: |
108+
if [[ "${{ contains(github.event.pull_request.changed_files, 'ingestion/') }}" == "true" ]]; then
109+
npx playwright test --grep @ingestion --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
110+
else
111+
npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
112+
fi
108113
env:
109114
PLAYWRIGHT_IS_OSS: true
110115
PLAYWRIGHT_SNOWFLAKE_USERNAME: ${{ secrets.TEST_SNOWFLAKE_USERNAME }}

.github/workflows/playwright-postgresql-e2e.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,12 @@ jobs:
103103
run: npx playwright@1.48.2 install --with-deps
104104
- name: Run Playwright tests
105105
working-directory: openmetadata-ui/src/main/resources/ui/
106-
run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
106+
run: |
107+
if [[ "${{ contains(github.event.pull_request.changed_files, 'ingestion/') }}" == "true" ]]; then
108+
npx playwright test --grep @ingestion --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
109+
else
110+
npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
111+
fi
107112
env:
108113
PLAYWRIGHT_IS_OSS: true
109114
PLAYWRIGHT_SNOWFLAKE_USERNAME: ${{ secrets.TEST_SNOWFLAKE_USERNAME }}

0 commit comments

Comments
 (0)