Skip to content

Commit da0f7de

Browse files
committed
cicd: run docs after tests
required for testlink creation
1 parent 71d54f2 commit da0f7de

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/component_integration_tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
- main
2121
merge_group:
2222
types: [checks_requested]
23+
workflow_call:
2324

2425
jobs:
2526
component-integration-tests:
@@ -28,7 +29,15 @@ jobs:
2829
run:
2930
shell: bash
3031
steps:
32+
- name: Checkout repository (pull_request_target via workflow_call)
33+
if: ${{ github.event_name == 'pull_request_target' }}
34+
uses: actions/checkout@v4
35+
with:
36+
ref: ${{ github.head_ref || github.event.pull_request.head.ref || github.ref }}
37+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
38+
3139
- name: Checkout repository
40+
if: ${{ github.event_name != 'pull_request_target' }}
3241
uses: actions/checkout@v4
3342

3443
- name: Setup Rust build environment

.github/workflows/docs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,21 @@ on:
2929
types: [checks_requested]
3030

3131
jobs:
32+
docs-verify:
33+
uses: eclipse-score/cicd-workflows/.github/workflows/docs-verify.yml@main
34+
permissions:
35+
pull-requests: write
36+
contents: read
37+
with:
38+
bazel-docs-verify-target: "//:docs_check"
39+
40+
cit-tests:
41+
uses: ./.github/workflows/component_integration_tests.yml
42+
secrets: inherit
43+
3244
build-docs:
45+
needs: [docs-verify, cit-tests] # Test reports are needed for traceability links
46+
if: ${{ always() && needs.docs-verify.result == 'success' }}
3347
uses: eclipse-score/cicd-workflows/.github/workflows/docs.yml@main
3448
permissions:
3549
contents: write

0 commit comments

Comments
 (0)