From d245e624275ea7d93b31e056666103fe16827040 Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Wed, 28 Feb 2024 11:33:31 +0200 Subject: [PATCH] build: Add GitHub action for metrics tests Signed-off-by: Ravi kumar Veeramally Signed-off-by: Rob Bradford --- .github/workflows/integration-metrics.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/integration-metrics.yaml diff --git a/.github/workflows/integration-metrics.yaml b/.github/workflows/integration-metrics.yaml new file mode 100644 index 000000000..8a847ddfd --- /dev/null +++ b/.github/workflows/integration-metrics.yaml @@ -0,0 +1,22 @@ +name: Cloud Hypervisor Tests (Metrics) +on: + push: + branches: + - main + +jobs: + build: + name: Tests (Metrics) + runs-on: jammy-metrics + env: + METRICS_PUBLISH_KEY: ${{ secrets.METRICS_PUBLISH_KEY }} + steps: + - name: Code checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Run metrics tests + timeout-minutes: 60 + run: scripts/dev_cli.sh tests --metrics -- -- --report-file /root/workloads/metrics.json + - name: Upload metrics report + run: 'curl -X PUT https://ch-metrics.azurewebsites.net/api/publishmetrics -H "x-functions-key: $METRICS_PUBLISH_KEY" -T ~/workloads/metrics.json'