@@ -26,24 +26,33 @@ jobs:
2626 node-version : 20
2727 cache : npm
2828
29- - name : Install Node dependencies
30- run : npm ci
31-
32- - name : Build Tailwind CSS
33- run : npm run build:css
34-
3529 - name : Setup Ruby
3630 uses : ruby/setup-ruby@v1
3731 with :
3832 ruby-version : ' 3.1'
3933 bundler-cache : true
4034
41- - name : Build Jekyll site
42- run : bundle exec jekyll build --destination ./_site
35+ - name : Install Node dependencies
36+ run : npm ci
37+
38+ - name : Check executable bits
39+ run : npm run check:mode
40+
41+ - name : Build site
42+ run : npm run build
43+
44+ - name : Verify generated CSS
45+ run : npm run check:css
4346
4447 - name : Validate generated HTML
4548 run : npm run check:html
4649
50+ - name : Collect active HTML pages
51+ id : active_pages
52+ run : |
53+ pages="$(./scripts/list-active-html.sh _site | tr '\n' ' ')"
54+ echo "pages=$pages" >> "$GITHUB_OUTPUT"
55+
4756 - name : Accessibility smoke check (Lighthouse)
4857 uses : treosh/lighthouse-ci-action@v12
4958 with :
5564 with :
5665 args : >-
5766 --verbose --no-progress --offline --exclude-mail
58- ./_site/index.html ./_site/download.html ./_site/documentation.html
59- ./_site/community.html ./_site/news.html ./_site/publications.html
60- ./_site/interfaces.html ./_site/projects.html ./_site/flatzinc.html
61- ./_site/license.html ./_site/disclaimer.html ./_site/logo.html
67+ ${{ steps.active_pages.outputs.pages }}
6268 env :
6369 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6470
6874 with :
6975 args : >-
7076 --verbose --no-progress --exclude-mail
71- ./_site/index.html ./_site/download.html ./_site/documentation.html
72- ./_site/community.html ./_site/news.html ./_site/publications.html
73- ./_site/interfaces.html ./_site/projects.html ./_site/flatzinc.html
74- ./_site/license.html ./_site/disclaimer.html ./_site/logo.html
77+ ${{ steps.active_pages.outputs.pages }}
7578 env :
7679 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7780
0 commit comments