Skip to content

Commit

Permalink
Linkchecker GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
jkfran committed Mar 3, 2020
1 parent cbb183d commit 52fe462
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pr_docker_build.yml
Expand Up @@ -18,3 +18,17 @@ jobs:
run: docker run -p ${PORT}:80 testrun &
- name: Check server status
run: curl localhost:${PORT}/_status/check -I

linkchecker:
name: Run site and check links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install linkchecker
run: sudo apt update && sudo apt install linkchecker
- name: Build Docker image
run: DOCKER_BUILDKIT=1 docker build --build-arg BUILD_ID=test --tag testrun .
- name: Run server with Docker
run: docker run -p ${PORT}:80 testrun &
- name: Check internal links
run: linkchecker --threads 2 --ignore-url /search localhost:${PORT}

0 comments on commit 52fe462

Please sign in to comment.