Skip to content
Draft
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
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ name: Run Bazel Tests
on:
pull_request:
types: [opened, reopened, synchronize]
workflow_call:
jobs:
code:
runs-on: ubuntu-latest
Expand All @@ -39,3 +40,25 @@ jobs:
run: |
bazel run //:ide_support
bazel test //src/...

- name: Prepare bundled consumer report
if: always()
run: |
# 1. Create the target directory
mkdir -p tests-report

# 2. Sync the testlogs to our artifact folder
# We use -L to follow the symlink and --include filters
# to only grab the actual results (XMLs and Logs)
rsync -amL --include='*/' --include='test.xml' --include='test.log' --exclude='*' bazel-testlogs/ tests-report/

# 3. Optional: If your tool prefers the folder name to match the Consumer Tests
# you can rename specific subfolders here, but rsync preserves the package paths.

- name: Upload bundled consumer report
if: always()
uses: actions/upload-artifact@v4
with:
name: tests-report
path: tests-report

6 changes: 3 additions & 3 deletions .github/workflows/test_and_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ jobs:
bazel-docs-verify-target: "//:docs_check"

# This is the user configurable part of the workflow
consumer-tests:
uses: ./.github/workflows/consumer_test.yml
unit-tests:
uses: ./.github/workflows/test.yml
secrets: inherit

docs-build:
# Waits for consumer-tests but run only when docs verification succeeded
needs: [docs-verify, consumer-tests]
needs: [docs-verify, unit-tests]
if: ${{ always() && needs.docs-verify.result == 'success' }}
uses: eclipse-score/cicd-workflows/.github/workflows/docs.yml@main
permissions:
Expand Down
Loading
Loading