feat: include guide for using alternative databases with identity #26283
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-docs | |
on: pull_request | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
env: | |
temporary_link_path: .github/workflows/validate-links | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 22 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Cache Docusaurus | |
uses: ./.github/actions/docusaurus-cache | |
- name: Build | |
run: npm run build | |
env: | |
NODE_OPTIONS: --max_old_space_size=8192 | |
- name: Check internal links | |
uses: untitaker/[email protected] | |
with: | |
args: build/ | |
- name: Remove https redirect | |
run: | | |
sed -i '/SERVER_PORT/d;/SERVER_NAME/d' build/.htaccess | |
- name: Run a web server for link checking | |
run: | | |
docker run -d --name webserver -v "$PWD/build":/app -p 8888:8080 bitnami/apache:2.4.54 | |
container_ip=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' webserver) | |
echo "container_ip=${container_ip}" >> $GITHUB_ENV | |
echo "domain_to_test=http://${container_ip}:8080" >> $GITHUB_ENV | |
- name: Wait for running docs web server | |
uses: nev7n/wait_for_response@v1 | |
with: | |
url: ${{ env.domain_to_test }} | |
- name: Download sitemap from production | |
run: curl -sL https://docs.camunda.io/sitemap.xml | grep -oP '<loc>\K.*?(?=</loc>)' > sitemap.prod.txt | |
- name: Remove known broken anchors. | |
run: | | |
sed -i 's!power-automate/#oauth-token-endpoint!power-automate/!g' connectors-element-template-links.txt | |
- name: Prepare link collections | |
# Turn static lists of URLs into HTML files with anchor tags. | |
run: | | |
mkdir -p ${temporary_link_path} | |
sed "s!https://docs\.camunda\.io\(.*\)!<a href=\"${domain_to_test}\1\">link</a>!g" \ | |
sitemap.prod.txt \ | |
> ${temporary_link_path}/sitemap-prod.html | |
sed "s!https://docs\.camunda\.io\(.*\)!<a href=\"${domain_to_test}\1\">link</a>!g" \ | |
product-links.txt \ | |
> ${temporary_link_path}/product-links.html | |
sed "s!https://docs\.camunda\.io\(.*\)!<a href=\"${domain_to_test}\1\">link</a>!g" \ | |
connectors-element-template-links.txt \ | |
> ${temporary_link_path}/connectors-element-template-links.html | |
- name: Serve link collections | |
## Run another web server because Muffet only works against web pages, not source files. | |
uses: Eun/http-server-action@v1 | |
with: | |
directory: ${{ env.temporary_link_path }} | |
port: 8081 | |
- name: Validate sitemap links | |
uses: ./.github/actions/muffet | |
with: | |
url_to_validate: http://localhost:8081/sitemap-prod.html | |
- name: Validate product links | |
uses: ./.github/actions/muffet | |
with: | |
url_to_validate: http://localhost:8081/product-links.html | |
- name: Validate element template links | |
uses: ./.github/actions/muffet | |
with: | |
url_to_validate: http://localhost:8081/connectors-element-template-links.html |