build: only run OTEL smoke tests if files have changed (#889)

Ref: HDX-1813
This commit is contained in:
Dan Hable 2025-05-30 15:21:27 -05:00 committed by GitHub
parent d1dc2ec050
commit c153cca9eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed OTEL collector files
id: changed-files
uses: tj-actions/changed-files@v39
with:
files: |
docker/otel-collector/**
smoke-tests/otel-ccollector/**
- name: Install required tooling
if: steps.changed-files.outputs.any_changed == 'true'
env:
DEBIAN_FRONTEND: noninteractive
run: |
@ -87,5 +95,6 @@ jobs:
sudo apt-get update
sudo apt-get install --yes curl bats clickhouse-client
- name: Run Smoke Tests
if: steps.changed-files.outputs.any_changed == 'true'
working-directory: ./smoke-tests/otel-collector
run: bats .