ci update

This commit is contained in:
Garry Ing 2021-04-11 21:46:36 -04:00
parent ac15f91064
commit 4deaf36347
No known key found for this signature in database
GPG Key ID: 3B379B1F2193CC3E
2 changed files with 6 additions and 3 deletions

View File

@ -13,5 +13,7 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install Curl
run: sudo apt install libcurl4-openssl-dev
- name: Run tests
run: bundle exec rake

View File

@ -11,12 +11,12 @@ end
desc 'Preview site'
task watch: :clean do
sh 'jekyll serve --watch'
sh 'bundle exec jekyll serve --watch'
end
desc 'Build site'
task build: :clean do
sh 'jekyll build'
sh 'bundle exec jekyll build'
end
desc 'Run HTMLProofer on _site'
@ -25,8 +25,9 @@ task check: :build do
check_html: true,
allow_hash_href: true,
assume_extension: true,
http_status_ignore: [403],
typhoeus: {
headers: { "User-Agent": 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0' }
headers: { "User-Agent": 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0' }
}
}
HTMLProofer.check_directory('./_site', options).run