Skip to content
Merged
45 changes: 12 additions & 33 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,50 +8,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the project
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js 14.x (LTS)
uses: actions/setup-node@v1
- name: Use Node.js 16.x (LTS)
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 16.x
cache: 'npm'
- run: npm ci

- name: Use Ruby 2.7
uses: actions/setup-ruby@v1
- name: Use Ruby 2.7.3
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'

- name: Restore npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Restore Bundler cache
uses: actions/cache@v2
with:
path: docs/vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-

- name: Configure Bundler cache
run: |
bundle config path vendor/bundle

- name: Install dependencies
run: |
npm ci
cd docs && bundle install && cd ..
ruby-version: '2.7.3'
bundler-cache: true
working-directory: docs

- name: Build docs
run: npm run build:docs
env:
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run Lighthouse CI
run: npx @lhci/cli@0.7.x autorun
run: npx @lhci/cli@0.9.x autorun
env:
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LHCI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

source 'https://rubygems.org'

gem 'jekyll', '~> 4.1.1'
gem 'jekyll'

group :jekyll_plugins do
gem 'jekyll-commonmark-ghpages', '~> 0.1.5'
gem 'jekyll-commonmark-ghpages'
gem 'jekyll-github-metadata'
gem 'jekyll-gzip'
end
109 changes: 62 additions & 47 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,92 +4,107 @@ GEM
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
commonmarker (0.17.13)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.7)
em-websocket (0.5.2)
commonmarker (0.23.4)
concurrent-ruby (1.1.10)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
http_parser.rb (~> 0)
eventmachine (1.2.7)
faraday (1.0.0)
faraday (1.10.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
ffi (1.13.1)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
ffi (1.15.5)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (1.8.5)
http_parser.rb (0.8.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (4.1.1)
jekyll (3.9.2)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sucks we gotta downgrade jekyll for this 😭

addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.1)
kramdown-parser-gfm (~> 1.0)
kramdown (>= 1.17, < 3)
liquid (~> 4.0)
mercenary (~> 0.4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (~> 3.0)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
terminal-table (~> 1.8)
jekyll-commonmark (1.3.1)
commonmarker (~> 0.14)
jekyll (>= 3.7, < 5.0)
jekyll-commonmark-ghpages (0.1.6)
commonmarker (~> 0.17.6)
jekyll-commonmark (~> 1.2)
jekyll-commonmark (1.4.0)
commonmarker (~> 0.22)
jekyll-commonmark-ghpages (0.2.0)
commonmarker (~> 0.23.4)
jekyll (~> 3.9.0)
jekyll-commonmark (~> 1.4.0)
rouge (>= 2.0, < 4.0)
jekyll-github-metadata (2.13.0)
jekyll-github-metadata (2.14.0)
jekyll (>= 3.4, < 5.0)
octokit (~> 4.0, != 4.4.0)
jekyll-gzip (2.4.2)
jekyll-gzip (2.5.1)
jekyll (>= 3.0, < 5.0)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.3.1)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.3.3)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mercenary (0.3.6)
multipart-post (2.1.1)
octokit (4.16.0)
octokit (4.22.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
rb-fsevent (0.10.4)
public_suffix (4.0.7)
rb-fsevent (0.11.1)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.25.0)
ruby-enum (0.7.2)
i18n
rouge (3.28.0)
ruby2_keywords (0.0.5)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sawyer (0.8.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.7.0)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
jekyll (~> 4.1.1)
jekyll-commonmark-ghpages (~> 0.1.5)
jekyll
jekyll-commonmark-ghpages
jekyll-github-metadata
jekyll-gzip

BUNDLED WITH
2.1.4
2.3.13
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor

collections:
guide:
Expand Down
9 changes: 5 additions & 4 deletions lighthouserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
"uses-text-compression": "off",
"render-blocking-resources": "off",
"uses-rel-preload": "off",
"first-contentful-paint": ["warn", {"minScore": 0.8}],
"first-meaningful-paint": ["warn", {"minScore": 0.8}],
"largest-contentful-paint": ["warn", {"minScore": 0.8}],
"deprecations": "off"
"first-contentful-paint": ["error", {"minScore": 0.6}],
"first-meaningful-paint": ["error", {"maxNumericValue": 3000}],
"largest-contentful-paint": ["error", {"maxNumericValue": 3000}],
"deprecations": "off",
"csp-xss": "off"
}
},
"upload": {
Expand Down