File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -29,27 +29,37 @@ jobs:
2929 run : |
3030 wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
3131 && sudo dpkg -i ${{ runner.temp }}/hugo.deb
32+
3233 - name : Install Dart Sass Embedded
3334 run : sudo snap install dart-sass-embedded
35+
3436 - name : Checkout
3537 uses : actions/checkout@v3
3638 with :
3739 submodules : recursive
40+
3841 - name : Setup Pages
3942 id : pages
4043 uses : actions/configure-pages@v5
44+
4145 - name : Install Node.js dependencies
4246 run : " [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
47+
48+ - name : Install validation tooling
49+ run : " pip install check-jsonschema"
50+
4351 - name : Build with Hugo
4452 env :
4553 # For maximum backward compatibility with Hugo modules
4654 HUGO_ENVIRONMENT : production
4755 HUGO_ENV : production
4856 run : |
4957 hugo --minify
58+
5059 - name : Validate page build
5160 run : |
5261 bash validate.sh
62+
5363 - name : Upload artifact
5464 uses : actions/upload-pages-artifact@v3
5565 with :
Original file line number Diff line number Diff line change @@ -13,4 +13,10 @@ pushd $BASE
1313 jq . " $json " 1> /dev/null
1414 done
1515
16+ if command -v check-jsonschema > /dev/null 2>&1 ; then
17+ echo
18+ echo " Validating human.json against JSON schema..."
19+ check-jsonschema --schemafile https://codeberg.org/robida/human.json/raw/branch/main/schema/0.1.1.json human.json
20+ fi
21+
1622popd
You can’t perform that action at this time.
0 commit comments