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
18 changes: 16 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

name: Documentation
name: Test and Build Docs

permissions:
contents: write
Expand All @@ -29,8 +29,22 @@ on:
types: [checks_requested]

jobs:
docs-verify:
uses: eclipse-score/cicd-workflows/.github/workflows/docs-verify.yml@c1c90b1a82a1fab0fc202979dde6686b2162d5a8 # v0.0.0
permissions:
pull-requests: write
contents: read
with:
bazel-docs-verify-target: "--lockfile_mode=error //:docs_check"
run-tests:
uses: ./.github/workflows/run-tests.yml
permissions:
contents: read
pull-requests: read
build-docs:
uses: eclipse-score/cicd-workflows/.github/workflows/docs.yml@main
needs: run-tests
if: ${{ needs.run-tests.result == 'success' }}
uses: eclipse-score/cicd-workflows/.github/workflows/docs.yml@c1c90b1a82a1fab0fc202979dde6686b2162d5a8 # v0.0.0
permissions:
contents: write
pages: write
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# *******************************************************************************
# Copyright (c) 2025 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

name: Run Tests

on:
# Reusable workflow only — triggered by "Test and Build Docs" (docs.yml) on PRs.
# Keeping tests here avoids duplication: docs.yml gates the docs build on tests passing.
workflow_call: {}
Comment thread
MaciejKaszynski marked this conversation as resolved.

jobs:
run-tests:
uses: eclipse-score/cicd-workflows/.github/workflows/tests.yml@c1c90b1a82a1fab0fc202979dde6686b2162d5a8 # v0.0.0
permissions:
contents: read
pull-requests: read
with:
bazel-target: 'test --lockfile_mode=error //... --config x86_64-linux'
upload-name: 'bazel-testlogs'
Loading