Skip to content

Commit eb83cc7

Browse files
committed
fix(ci): run the shortcode
examples test against the example.md file whenever relevant files (assets, layouts, or the example file itself) are staged
1 parent 786f44c commit eb83cc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lefthook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ pre-push:
7878
- assets/*.{js,mjs,css,scss}
7979
- layouts/*.html
8080
- content/example.md
81-
files: /bin/ls content/example.md
8281
run: |
83-
node cypress/support/run-e2e-specs.js --spec "cypress/e2e/content/article-links.cy.js" {files}
82+
echo "Running shortcode examples test due to changes in: {staged_files}"
83+
node cypress/support/run-e2e-specs.js --spec "cypress/e2e/content/article-links.cy.js" content/example.md
8484
exit $?
8585
8686
e2e-links:

0 commit comments

Comments
 (0)