Skip to content

adds example config files in statically since the dynamic retrieval was disabled in previous PR #7766

adds example config files in statically since the dynamic retrieval was disabled in previous PR

adds example config files in statically since the dynamic retrieval was disabled in previous PR #7766

Workflow file for this run

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@v3
- name: Set up Node
uses: actions/setup-node@v3
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: Set up Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.125.0'
- 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