ci update
This commit is contained in:
parent
ac15f91064
commit
4deaf36347
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -13,5 +13,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ruby-version: ${{ matrix.ruby-version }}
|
ruby-version: ${{ matrix.ruby-version }}
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
|
- name: Install Curl
|
||||||
|
run: sudo apt install libcurl4-openssl-dev
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: bundle exec rake
|
run: bundle exec rake
|
7
Rakefile
7
Rakefile
@ -11,12 +11,12 @@ end
|
|||||||
|
|
||||||
desc 'Preview site'
|
desc 'Preview site'
|
||||||
task watch: :clean do
|
task watch: :clean do
|
||||||
sh 'jekyll serve --watch'
|
sh 'bundle exec jekyll serve --watch'
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Build site'
|
desc 'Build site'
|
||||||
task build: :clean do
|
task build: :clean do
|
||||||
sh 'jekyll build'
|
sh 'bundle exec jekyll build'
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Run HTMLProofer on _site'
|
desc 'Run HTMLProofer on _site'
|
||||||
@ -25,8 +25,9 @@ task check: :build do
|
|||||||
check_html: true,
|
check_html: true,
|
||||||
allow_hash_href: true,
|
allow_hash_href: true,
|
||||||
assume_extension: true,
|
assume_extension: true,
|
||||||
|
http_status_ignore: [403],
|
||||||
typhoeus: {
|
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
|
HTMLProofer.check_directory('./_site', options).run
|
||||||
|
Loading…
Reference in New Issue
Block a user