From eb83cc7767a92990e32be273f38a904fbe856a3d Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Sat, 5 Jul 2025 15:55:55 -0500 Subject: [PATCH] fix(ci): run the shortcode examples test against the example.md file whenever relevant files (assets, layouts, or the example file itself) are staged --- lefthook.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index e5e951b09..a82770f77 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -78,9 +78,9 @@ pre-push: - assets/*.{js,mjs,css,scss} - layouts/*.html - content/example.md - files: /bin/ls content/example.md run: | - node cypress/support/run-e2e-specs.js --spec "cypress/e2e/content/article-links.cy.js" {files} + echo "Running shortcode examples test due to changes in: {staged_files}" + node cypress/support/run-e2e-specs.js --spec "cypress/e2e/content/article-links.cy.js" content/example.md exit $? e2e-links: