Skip to content

Commit

Permalink
Run all product tests if product tests changed
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelWeezardo authored and electrum committed Apr 12, 2022
1 parent 2267c61 commit 2ff87b6
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -662,14 +662,34 @@ jobs:
with:
distribution: 'zulu'
java-version: 11
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
product-tests:
- 'testing/trino-product-tests*/**'
- 'testing/trino-testing-services/**'
# run all tests when there are any changes in the trino-server Maven module
# because it uses Provisio to determine its dependencies
- 'core/trino-server/**'
- '.github/**'
- name: Product tests artifact
uses: actions/download-artifact@v2
with:
name: product tests and server tarball
- name: Fix artifact permissions
run: |
find . -type f -name \*-executable.jar -exec chmod 0777 {} \;
- name: Product Tests
- name: Product Tests (all)
if: steps.filter.outputs.product-tests == 'true' || contains(github.event.pull_request.labels.*.name, 'tests:all') || contains(github.event.pull_request.labels.*.name, 'tests:all-product')
run: |
testing/bin/ptl suite run \
--suite ${{ matrix.suite }} \
--config config-${{ matrix.config }} \
--bind=off --logs-dir logs/ --timeout 2h \
--trino-jdk-version zulu_${{ matrix.jdk }}
- name: Product Tests (impacted-features)
if: steps.filter.outputs.product-tests == 'false' && !contains(github.event.pull_request.labels.*.name, 'tests:all') && !contains(github.event.pull_request.labels.*.name, 'tests:all-product')
run: |
testing/bin/ptl suite run \
--suite ${{ matrix.suite }} \
Expand Down

0 comments on commit 2ff87b6

Please sign in to comment.