Skip to content

Consider the new edge content source when matching branches, also always build main and master speculatively if not configured as contentsource #3101

Consider the new edge content source when matching branches, also always build main and master speculatively if not configured as contentsource

Consider the new edge content source when matching branches, also always build main and master speculatively if not configured as contentsource #3101

Workflow file for this run

name: smoke-tests
on:
pull_request: ~
jobs:
build:
runs-on: ubuntu-latest
name: build (${{ matrix.repository }})
strategy:
fail-fast: false
matrix:
include:
- repository: elastic/docs-content
landing-page-path-output: /docs/
- repository: elastic/elasticsearch
landing-page-path-output: /docs/reference/
- repository: elastic/opentelemetry
landing-page-path-output: /docs/reference/
# This is a random repository that should not have a docset.yml
- repository: elastic/oblt-actions
landing-page-path-output: ""
steps:
- uses: actions/checkout@v5
- name: Bootstrap Action Workspace
uses: ./.github/actions/bootstrap
- uses: actions/checkout@v5
with:
repository: ${{ matrix.repository }}
path: test-repo
- name: Build documentation
id: docs-build
run: |
dotnet run --project src/tooling/docs-builder -- --strict --path-prefix "/docs" -p test-repo
- name: Verify landing-page-path output
run: test ${{ steps.docs-build.outputs.landing-page-path }} == ${{ matrix.landing-page-path-output }}
- name: Verify link validation
run: |
dotnet run --project src/tooling/docs-builder -- inbound-links validate-link-reference -p test-repo