Skip to content

Add inbound link validation to our smoke tests #1358

Add inbound link validation to our smoke tests

Add inbound link validation to our smoke tests #1358

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/apm-agent-android
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@v4
- name: Bootstrap Action Workspace
uses: ./.github/actions/bootstrap
- uses: actions/checkout@v4
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
id: docs-build

Check failure on line 44 in .github/workflows/smoke-test.yml

View workflow run for this annotation

GitHub Actions / smoke-tests

Invalid workflow file

The workflow is not valid. .github/workflows/smoke-test.yml (Line: 44, Col: 13): The identifier 'docs-build' may not be used more than once within the same scope.
run: |
dotnet run --project src/tooling/docs-builder inbound-links validate-link-reference