Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 40 additions & 37 deletions .github/workflows/_report-to-ketryx.yml
Original file line number Diff line number Diff line change
@@ -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:

This comment was marked as outdated.


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
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Loading