Skip to content

Add link checking action #1

Add link checking action

Add link checking action #1

Workflow file for this run

on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
workflow_dispatch:

Check failure on line 11 in .github/workflows/build-pages.yml

View workflow run for this annotation

GitHub Actions / Pages-CI

Invalid workflow file

The workflow is not valid. .github/workflows/build-pages.yml (Line: 11, Col: 1): Unexpected value 'workflow_dispatch'
name: Pages-CI
jobs:
validate:
name: Validate HTML
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ./pages
ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Cache HTMLProofer
id: cache-htmlproofer
uses: actions/cache@v3
with:
path: tmp/.htmlproofer
key: ${{ runner.os }}-htmlproofer
- name: Build Site
run: bundle exec jekyll build
- name: Test with Nu Validator
uses: Cyb3r-Jak3/html5validator-action@2a593a9f2c10593cbac84791a6fc4c47e9a106c8
with:
config: fixtures/html5validator-config.yml
- name: Test with html-proofer
run: bundle exec htmlproofer _site --ignore-urls "/github.com/,/web.archive.org/" --swap-urls '^/application-study-tool/:/'
env:
NOKOGIRI_USE_SYSTEM_LIBRARIES: true