diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 87b2565..1695126 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 \ No newline at end of file diff --git a/Rakefile b/Rakefile index 9bbfb78..b957aba 100644 --- a/Rakefile +++ b/Rakefile @@ -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