fix(ci): run the shortcode

examples test against the example.md file whenever relevant
  files (assets, layouts, or the example file itself) are staged
pull/6190/head
Jason Stirnaman 2025-07-05 15:55:55 -05:00
parent 786f44cbe2
commit eb83cc7767
1 changed files with 2 additions and 2 deletions

View File

@ -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: