run pre-commit on changed files of PRs
continuous-integration/drone/pr Build is passing

This commit is contained in:
2022-02-11 12:28:55 +01:00
parent 8ffdd5d529
commit 87bc5050d0
2 changed files with 21 additions and 6 deletions
+7 -3
View File
@@ -6,11 +6,15 @@ clone:
depth: 150
steps:
- name: syntaxcheck
image: vsasyan/xmllint
- name: checks
image: nixery.dev/shell/git/libxml2/gnused/gnugrep/findutils/perl/file:latest
commands:
- find . -type f \( -iname "*.xhtml" -o -iname "*.xml" -o -iname "*.xsl" \) -exec xmllint --noout {} +
# Check whether non-EN news item would appear on front-page
- bash tools/check-non-en-frontpage.sh news
# Run pre-commit checks
- bash tools/githooks/pre-commit ci-pr
# Check syntax for all files as a safety net
- find . -type f \( -iname "*.xhtml" -o -iname "*.xml" -o -iname "*.xsl" \) -exec xmllint --noout {} +
trigger:
branch: