1- on :
1+ on :
22 push :
33 branches :
4- - master
4+ - master
5+ pull_request :
6+ branches :
7+ - master
58
6- name : Master branch CI
9+ name : CI
710
811jobs :
12+ jekyll-build :
13+ name : Build (jekyll gem)
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ jekyll-version : [3.9, 4.3]
18+ os : [ ubuntu-latest, macos-latest, windows-latest ]
19+ ruby-version : ["3.0", "3.1", "3.2"]
20+ runs-on : ${{ matrix.os }}
21+ steps :
22+ - uses : actions/checkout@v4
23+ - name : Setup Ruby ${{ matrix.ruby-version }}
24+ uses : ruby/setup-ruby@v1
25+ with :
26+ ruby-version : ${{ matrix.ruby-version }}
27+ bundler-cache : false
28+ - name : Bundle Install (Jekyll ${{ matrix.jekyll-version }})
29+ run : bundle install
30+ env :
31+ BUNDLE_GEMFILE : fixtures/Gemfile-jekyll-${{ matrix.jekyll-version }}
32+ - name : Init Search
33+ run : bundle exec rake search:init
34+ env :
35+ BUNDLE_GEMFILE : fixtures/Gemfile-jekyll-${{ matrix.jekyll-version }}
36+ - name : Build Site
37+ run : bundle exec jekyll build
38+ env :
39+ BUNDLE_GEMFILE : fixtures/Gemfile-jekyll-${{ matrix.jekyll-version }}
940
10- jekyll-latest :
11- name : Build Jekyll site (latest )
41+ github-pages-build :
42+ name : Build (github-pages gem )
1243 runs-on : ubuntu-latest
1344 steps :
45+ - uses : actions/checkout@v4
46+ - name : Setup Ruby
47+ uses : ruby/setup-ruby@v1
48+ with :
49+ ruby-version : " 3.2"
50+ bundler-cache : false
51+ - name : Bundle Install
52+ run : bundle install
53+ env :
54+ BUNDLE_GEMFILE : fixtures/Gemfile-github-pages
55+ - name : Build Site
56+ run : bundle exec jekyll build
57+ env :
58+ BUNDLE_GEMFILE : fixtures/Gemfile-github-pages
1459
15- - uses : actions/checkout@master
16-
17- - name : Build the site in the jekyll/builder container
18- run : |
19- docker run --rm \
20- --volume="${{ github.workspace }}:/srv/jekyll" \
21- jekyll/builder:latest /bin/bash -c "gem install bundler && git config --global --add safe.directory /srv/jekyll && chmod -R 777 /srv/jekyll && jekyll build && bundle exec just-the-docs rake search:init"
22- jekyll-3-8-5 :
23- name : Build Jekyll site (v3.8.5)
60+ validate :
61+ name : Validate HTML
62+ strategy :
63+ fail-fast : false
64+ matrix :
65+ ruby-version : ["3.2"]
2466 runs-on : ubuntu-latest
25- steps :
2667
27- - uses : actions/checkout@master
68+ steps :
69+ - uses : actions/checkout@v4
70+ - name : Setup Ruby ${{ matrix.ruby-version }}
71+ uses : ruby/setup-ruby@v1
72+ with :
73+ ruby-version : ${{ matrix.ruby-version }}
74+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
75+ cache-version : 0 # Increment this number if you need to re-download cached gems
76+ - name : Cache HTMLProofer
77+ id : cache-htmlproofer
78+ uses : actions/cache@v3
79+ with :
80+ path : tmp/.htmlproofer
81+ key : ${{ runner.os }}-htmlproofer
82+ - name : Build Site
83+ run : bundle exec jekyll build
84+ - name : Test with Nu Validator
85+ uses : Cyb3r-Jak3/html5validator-action@2a593a9f2c10593cbac84791a6fc4c47e9a106c8
86+ with :
87+ config : fixtures/html5validator-config.yml
88+ - name : Test with html-proofer
89+ run : bundle exec htmlproofer _site --ignore-urls "/github.com/,/web.archive.org/"
90+ env :
91+ NOKOGIRI_USE_SYSTEM_LIBRARIES : true
2892
29- - name : Build the site in the jekyll/builder container
30- run : |
31- docker run --rm \
32- --volume="${{ github.workspace }}:/srv/jekyll" \
33- jekyll/builder:3.8.5 /bin/bash -c "gem install bundler && chmod -R 777 /srv/jekyll && jekyll build && bundle exec just-the-docs rake search:init"
3493 assets :
35- name : Format and test CSS and JS
94+ name : Test CSS and JS
3695 runs-on : ubuntu-latest
3796
97+ strategy :
98+ matrix :
99+ node-version : [18.x]
100+
38101 steps :
39- - uses : actions/checkout@v2
40- - name : Use Node.js 12.x
41- uses : actions/setup-node@v1
102+ - uses : actions/checkout@v4
103+ - name : Use Node.js ${{ matrix.node-version }}
104+ uses : actions/setup-node@v3
42105 with :
43- node-version : ' 12.x '
106+ node-version : ${{ matrix.node-version }}
44107 - run : npm install
45- - run : npm test
108+ - run : npm test
0 commit comments