Composable image: Move common content into individual settings topics #10073
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: Check internal links | |
| on: | |
| pull_request: | |
| branches: [main] | |
| types: [opened,reopened,synchronize,labeled,unlabeled] | |
| jobs: | |
| check-internal-links: | |
| name: Check internal links | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| site: ['platform', 'upsun'] | |
| # Run only for PRs from default repo and approved PRs from forks | |
| if: github.event.pull_request.head.repo.id == 21975579 || contains(github.event.pull_request.labels.*.name, 'build-fork') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| cache: npm | |
| cache-dependency-path: sites/${{ matrix.site }}/package-lock.json | |
| - name: Install dependencies | |
| run: | | |
| cd sites/${{ matrix.site }} | |
| npm ci | |
| - name: Build search script | |
| run: | | |
| cd sites/${{ matrix.site }} | |
| npm run build:search | |
| - name: Retrieve Hugo version | |
| id: get-hugo-version | |
| run: | | |
| export siteName="${{ matrix.site }}" | |
| if [[ "platform" == "${{ matrix.site }}" ]]; then | |
| export siteName="docs" | |
| fi | |
| hugoVersion=$(yq '.[] | select(.name == env(siteName)) | .variables.env.HUGOVERSION' .platform/applications.yaml) | |
| echo "hugov=${hugoVersion}" >> $GITHUB_OUTPUT | |
| - name: Set up Hugo | |
| uses: peaceiris/actions-hugo@v2 | |
| with: | |
| hugo-version: ${{ steps.get-hugo-version.outputs.hugov }} | |
| - name: Build Hugo site | |
| run: | | |
| cd sites/${{ matrix.site }} | |
| hugo | |
| - name: Minify assets | |
| run: | | |
| cd sites/${{ matrix.site }} | |
| - name: Check links in Markdown | |
| run: | | |
| set -e | |
| cd sites/${{ matrix.site }} | |
| curl https://htmltest.wjdp.uk | bash | |
| bin/htmltest |