|
48 | 48 | trapper_changed: ${{ steps.check_trapper.outputs.changed }} |
49 | 49 | users_dataset_generator_changed: ${{ steps.check_users_dataset_generator.outputs.changed }} |
50 | 50 | webhook_executor_changed: ${{ steps.check_webhook_executor.outputs.changed }} |
| 51 | + tools_changed: ${{ steps.check_tools.outputs.changed }} |
51 | 52 | steps: |
52 | 53 | - uses: actions/checkout@v4 |
53 | 54 | with: |
@@ -362,6 +363,15 @@ jobs: |
362 | 363 | echo "changed=false" >> $GITHUB_OUTPUT |
363 | 364 | fi |
364 | 365 |
|
| 366 | + - name: Check if 'tools/**' changed |
| 367 | + id: check_tools |
| 368 | + run: | |
| 369 | + if git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q '^tools/'; then |
| 370 | + echo "changed=true" >> $GITHUB_OUTPUT |
| 371 | + else |
| 372 | + echo "changed=false" >> $GITHUB_OUTPUT |
| 373 | + fi |
| 374 | +
|
365 | 375 | auth_tests: |
366 | 376 | if: needs.determine_changes.outputs.auth_changed == 'true' |
367 | 377 | needs: determine_changes |
@@ -817,6 +827,16 @@ jobs: |
817 | 827 | run: bash -x build.sh webhook_executor build |
818 | 828 | - name: Build test image and run tests |
819 | 829 | run: bash -x docker_images/run_test.sh webhook_executor |
| 830 | + tools_tests: |
| 831 | + if: needs.determine_changes.outputs.tools_changed == 'true' |
| 832 | + needs: determine_changes |
| 833 | + runs-on: ubuntu-latest |
| 834 | + steps: |
| 835 | + - uses: actions/checkout@v4 |
| 836 | + with: |
| 837 | + fetch-depth: 0 |
| 838 | + - name: Build test image and run tests |
| 839 | + run: bash -x tools/run_test.sh |
820 | 840 |
|
821 | 841 | pr_notification: |
822 | 842 | needs: |
@@ -858,6 +878,7 @@ jobs: |
858 | 878 | - trapper_tests |
859 | 879 | - users_dataset_generator_tests |
860 | 880 | - webhook_executor_tests |
| 881 | + - tools_tests |
861 | 882 | runs-on: ubuntu-latest |
862 | 883 | if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') |
863 | 884 | steps: |
|
0 commit comments