From 14f8b88cfdeb4beab35d232d768ce1e0eb52dc64 Mon Sep 17 00:00:00 2001 From: Mohammed Kaddouri Date: Thu, 6 Jun 2024 16:35:19 +0200 Subject: [PATCH] Test local collect --- .github/workflows/main.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d52b398..f4c2f93 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -76,8 +76,16 @@ jobs: # Find metricshub.exe and run it $exe_path = Get-ChildItem -Path artifacts -Recurse -Filter metricshub.exe | Select-Object -First 1 Write-Host "Found metricshub.exe at $($exe_path.FullName)" - Set-Location artifacts\metricshub - & metricshub.exe --version + & $exe_path.FullName --version + + - name: MetricsHub localhost collect + shell: pwsh + run: | + Write-Host "Metrics for localhost:" + # Find metricshub.exe and run it + $exe_path = Get-ChildItem -Path artifacts -Recurse -Filter metricshub.exe | Select-Object -First 1 + Write-Host "Found metricshub.exe at $($exe_path.FullName)" + & $exe_path.FullName localhost -t win --wmi --connectors Windows - name: List downloaded files shell: pwsh