From a8346600f434a3c9ad3bf2bbd2e5cfdf5ff33a80 Mon Sep 17 00:00:00 2001 From: nassim Date: Wed, 24 Dec 2025 10:03:40 +0100 Subject: [PATCH] test --- .github/workflows/_report-to-ketryx.yml | 77 +++++++++++++------------ .github/workflows/ci-cd.yml | 2 +- 2 files changed, 41 insertions(+), 38 deletions(-) diff --git a/.github/workflows/_report-to-ketryx.yml b/.github/workflows/_report-to-ketryx.yml index 9c888d0..3e41064 100644 --- a/.github/workflows/_report-to-ketryx.yml +++ b/.github/workflows/_report-to-ketryx.yml @@ -1,42 +1,45 @@ name: 'Ketryx report' +permissions: {} + on: - workflow_call: - inputs: - build-name: - description: 'The build name to report' - required: true - type: string - secrets: - KETRYX_PROJECT: - description: 'Ketryx project ID' - required: true - KETRYX_API_KEY: - description: 'Ketryx API key' - required: true + workflow_call: + inputs: + build-name: + description: 'The build name to report' + required: true + type: string + secrets: + KETRYX_PROJECT: + description: 'Ketryx project ID' + required: true + KETRYX_API_KEY: + description: 'Ketryx API key' + required: true + workflow_dispatch: jobs: - report-to-ketryx: - runs-on: ubuntu-latest - steps: - - name: Download SDK test results - uses: actions/download-artifact@v4 - continue-on-error: true - with: - name: test-results-sdk - path: test-results/sdk/ - - - name: Download CLI test results - uses: actions/download-artifact@v4 - continue-on-error: true - with: - name: test-results-cli - path: test-results/cli/ - - - name: Report to Ketryx - uses: Ketryx/ketryx-github-action@v1.4.0 - with: - project: ${{ secrets.KETRYX_PROJECT }} - api-key: ${{ secrets.KETRYX_API_KEY }} - build-name: ${{ inputs.build-name }} - test-junit-path: test-results/**/*.xml + report-to-ketryx: + runs-on: ubuntu-latest + steps: + - name: Download SDK test results + uses: actions/download-artifact@v4 + continue-on-error: true + with: + name: test-results-sdk + path: test-results/sdk/ + + - name: Download CLI test results + uses: actions/download-artifact@v4 + continue-on-error: true + with: + name: test-results-cli + path: test-results/cli/ + + - name: Report to Ketryx + uses: Ketryx/ketryx-github-action@v1.4.0 + with: + project: ${{ secrets.KETRYX_PROJECT }} + api-key: ${{ secrets.KETRYX_API_KEY }} + build-name: ${{ inputs.build-name }} + test-junit-path: test-results/**/*.xml diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index cfdf8d9..9fb5a38 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -135,7 +135,7 @@ jobs: run-ketryx-report: needs: test - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' uses: ./.github/workflows/_report-to-ketryx.yml with: build-name: 'pre-release'