Skip to content

Commit 7205f20

Browse files
committed
ci: exclude Bootstrap from Nu Html Checker
* attempt to fix filterpattern to exclude the annotation about `rel=#git` * install PySpelling via setup-python action directly
1 parent 24e9bfd commit 7205f20

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
with:
2424
distribution: temurin
2525
# https://github.com/orgs/adoptium/repositories?q=temurin*-binaries
26-
java-version: 24
26+
java-version: 26
2727
java-package: jre
2828
check-latest: true
2929
- name: Download Nu Html Checker
3030
run: curl -sSfLO 'https://github.com/validator/validator/releases/download/latest/vnu.jar'
3131
- name: Run Nu Html Checker to check HTML, CSS and SVG files
32-
run: find . -type f \( -name '*.html' -o -name '*.css' -o -name '*.svg' \) -exec java -jar vnu.jar --verbose --also-check-css --also-check-svg --filterpattern '.*skipping . heading level.*|.*bad value .#git. for attribute .rel.*' {} +
32+
run: find . -type f \( -name '*.html' -o -name '*.css' -o -name '*.svg' \) ! -name 'bootstrap.min.css' -exec java -jar vnu.jar --verbose --also-check-css --also-check-svg --filterpattern '.*(skipping . heading level|bad value .#git. for attribute .rel).*' {} +
3333
- name: Check for obsolete image files
3434
if: always() && steps.deploy.outcome == 'success'
3535
run: |
@@ -43,15 +43,15 @@ jobs:
4343
with:
4444
python-version: 3.x
4545
check-latest: true
46-
- name: Install PySpelling
47-
id: pyspelling
46+
pip-install: pyspelling
47+
- name: Install Aspell for PySpelling
48+
id: aspell
4849
if: always() && steps.python.outcome == 'success'
4950
run: |
50-
{ pip3 install -U pip setuptools wheel; pip3 install -U pyspelling; } &
5151
sudo apt-get -q update
5252
sudo apt-get -qq --no-install-recommends install aspell-en
5353
- name: Run PySpelling to check HTML files
54-
if: always() && steps.pyspelling.outcome == 'success'
54+
if: always() && steps.aspell.outcome == 'success'
5555
run: pyspelling -vc .spellcheck.yml
5656
- name: Download lychee
5757
id: lychee

0 commit comments

Comments
 (0)