mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
build: only run OTEL smoke tests if files have changed (#889)
Ref: HDX-1813
This commit is contained in:
parent
d1dc2ec050
commit
c153cca9eb
1 changed files with 9 additions and 0 deletions
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
|
|
@ -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 .
|
||||
|
|
|
|||
Loading…
Reference in a new issue