Skip to content

Commit a834660

Browse files
committed
test
1 parent 876ee16 commit a834660

2 files changed

Lines changed: 41 additions & 38 deletions

File tree

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
11
name: 'Ketryx report'
22

3+
permissions: {}
4+
35
on:
4-
workflow_call:
5-
inputs:
6-
build-name:
7-
description: 'The build name to report'
8-
required: true
9-
type: string
10-
secrets:
11-
KETRYX_PROJECT:
12-
description: 'Ketryx project ID'
13-
required: true
14-
KETRYX_API_KEY:
15-
description: 'Ketryx API key'
16-
required: true
6+
workflow_call:
7+
inputs:
8+
build-name:
9+
description: 'The build name to report'
10+
required: true
11+
type: string
12+
secrets:
13+
KETRYX_PROJECT:
14+
description: 'Ketryx project ID'
15+
required: true
16+
KETRYX_API_KEY:
17+
description: 'Ketryx API key'
18+
required: true
19+
workflow_dispatch:
1720

1821
jobs:
19-
report-to-ketryx:
20-
runs-on: ubuntu-latest
21-
steps:
22-
- name: Download SDK test results
23-
uses: actions/download-artifact@v4
24-
continue-on-error: true
25-
with:
26-
name: test-results-sdk
27-
path: test-results/sdk/
28-
29-
- name: Download CLI test results
30-
uses: actions/download-artifact@v4
31-
continue-on-error: true
32-
with:
33-
name: test-results-cli
34-
path: test-results/cli/
35-
36-
- name: Report to Ketryx
37-
uses: Ketryx/ketryx-github-action@v1.4.0
38-
with:
39-
project: ${{ secrets.KETRYX_PROJECT }}
40-
api-key: ${{ secrets.KETRYX_API_KEY }}
41-
build-name: ${{ inputs.build-name }}
42-
test-junit-path: test-results/**/*.xml
22+
report-to-ketryx:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Download SDK test results
26+
uses: actions/download-artifact@v4
27+
continue-on-error: true
28+
with:
29+
name: test-results-sdk
30+
path: test-results/sdk/
31+
32+
- name: Download CLI test results
33+
uses: actions/download-artifact@v4
34+
continue-on-error: true
35+
with:
36+
name: test-results-cli
37+
path: test-results/cli/
38+
39+
- name: Report to Ketryx
40+
uses: Ketryx/ketryx-github-action@v1.4.0
41+
with:
42+
project: ${{ secrets.KETRYX_PROJECT }}
43+
api-key: ${{ secrets.KETRYX_API_KEY }}
44+
build-name: ${{ inputs.build-name }}
45+
test-junit-path: test-results/**/*.xml

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135

136136
run-ketryx-report:
137137
needs: test
138-
if: github.ref == 'refs/heads/main'
138+
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
139139
uses: ./.github/workflows/_report-to-ketryx.yml
140140
with:
141141
build-name: 'pre-release'

0 commit comments

Comments
 (0)