Skip to content

Commit

Permalink
ci: Improve local testing workflow
Browse files Browse the repository at this point in the history
git push should only lint, compile done by update instead
  • Loading branch information
vEnhance committed Jun 10, 2024
1 parent 88a4b43 commit 571a12c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ prettier --check "${MARKDOWN_FILES_ARRAY[@]}"
echo "Running spellcheck..."
codespell "${SPELL_FILES_ARRAY[@]}"

echo "Checking compile passes..."
./scripts/compile.sh
echo "Running htmlhint..."
htmlhint output/*.html

echo "✅ All OK!"
6 changes: 4 additions & 2 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ python3 poole/poole.py -b --base-url="$BASE_URL" \

# reformat output with tidy
tidy -config ./tidyrc -qm ./output/*.html

# reformat it with prettier afterwards
prettier -w ./output/*.html
# validate with htmlhint
htmlhint output/*.html

# Lint everything
./lint.sh
1 change: 1 addition & 0 deletions update.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/fish

./scripts/compile.sh
git diff --quiet

if test $status -eq 1 -a -z "$argv[1]"
Expand Down

0 comments on commit 571a12c

Please sign in to comment.