Skip to content

Commit

Permalink
CI: Add proofing workflow to check broken URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
lah7 committed Dec 7, 2024
1 parent 5abaecf commit 7ad3c36
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,23 @@ jobs:
projectName: guide-ubuntu-mate-org
directory: online/build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

test:
name: Proofing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get install pandoc ruby-html-proofer
- name: Check links
run: |
pandoc -f docbook -t html -s -o ubuntu-mate-guide.html index.docbook
htmlproofer --only-4xx ubuntu-mate-guide.html
- name: Test for errors
run: |
cd guide.ubuntu-mate.org/
scripts/test.sh

0 comments on commit 7ad3c36

Please sign in to comment.