fix: Update article to configure a user namespace #4897
This file contains 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
# | |
# Copyright (c) 2020 Red Hat, Inc. | |
# This program and the accompanying materials are made | |
# available under the terms of the Eclipse Public License 2.0 | |
# which is available at https://www.eclipse.org/legal/epl-2.0/ | |
# | |
# SPDX-License-Identifier: EPL-2.0 | |
# | |
# Name is reused in `publish-netlify.yml` | |
name: "Build and validate pull request" | |
on: | |
- pull_request | |
jobs: | |
build: | |
name: "Build and validate pull request" | |
runs-on: ubuntu-22.04 | |
container: "quay.io/eclipse/che-docs:next" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Necessary for git diff in vale step | |
# Cache for Antora UI and Htmltest. | |
# See: https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows | |
# Htmltest accepts 2 weeks old cache for the status code of checked external URLs | |
# See: https://github.com/wjdp/htmltest | |
# Refresh the cache every week to avoid a stale cache for htmltest | |
# See: https://github.com/actions/cache | |
# See: http://man7.org/linux/man-pages/man1/date.1.html | |
- name: Get Date | |
id: get-date | |
run: echo "YEAR_WEEK=$(/bin/date -u +%Y%U)" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Restore cache | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache | |
with: | |
path: .cache | |
key: ${{ steps.get-date.outputs.YEAR_WEEK }} | |
- name: Build using antora # and fail on warning | |
id: antora-build | |
run: CI=true antora generate antora-playbook-for-development.yml --stacktrace --log-failure-level=warn | |
- name: Store pull request details for publish-netlify | |
run: | | |
echo "${{ github.event.number }}" > PR_NUMBER | |
echo "${{ github.event.pull_request.head.sha }}" > PR_SHA | |
- name: Upload artifact doc-content | |
uses: actions/upload-artifact@v3 | |
with: | |
name: doc-content | |
path: | | |
build/site | |
PR_NUMBER | |
PR_SHA | |
- name: Validate links using htmltest | |
id: validate-links | |
run: htmltest | |
- name: Report unused content | |
run: tools/detect-unused-content.sh | |
- name: Validate language on files added or modified | |
run: tools/validate_language_changes.sh | |