Skip to content

Commit 8831d85

Browse files
author
markzegarelli
authored
create a link check action
1 parent 3a3d630 commit 8831d85

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/check-links.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CheckLinks
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
branches:
10+
- master
11+
12+
jobs:
13+
checklinks:
14+
name: Linux
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Ruby
21+
uses: actions/setup-ruby@v1
22+
with:
23+
ruby-version: 2.6.x
24+
- name: Setup Rubygems, Bundler, jekyll
25+
run: |
26+
gem update --system --no-document
27+
gem update bundler --no-document
28+
gem install jekyll bundler
29+
bundle install
30+
- name: Build jekyll website with drafts
31+
run: bundle exec jekyll build --drafts
32+
- name: Check for broken links
33+
run: |
34+
bundle exec htmlproofer --log-level :debug ./_site &> links.log
35+
continue-on-error: true
36+
- name: Archive log links
37+
uses: actions/upload-artifact@v1
38+
with:
39+
name: links-check.log
40+
path: links.log

0 commit comments

Comments
 (0)