Skip to content

Commit

Permalink
Merge pull request #77 from sebastian-sauer/feature/enable_doctest
Browse files Browse the repository at this point in the history
Add markdown-doctest
  • Loading branch information
davidparsson authored Sep 17, 2024
2 parents 584f2cd + b574282 commit 26e2634
Show file tree
Hide file tree
Showing 6 changed files with 2,673 additions and 970 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,16 @@ jobs:
run: |
npm install
npm run check
doctest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 20.x
- name: npm install, run doctest
run: |
npm install
npm run doctest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ build/
dist/
coverage/
.nvmrc

test-report.xml
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
npm run check
npm run build
npm run test
npm run doctest
9 changes: 9 additions & 0 deletions .markdown-doctest-setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// .markdown-doctest-setup.js
module.exports = {
require: {
'junit-report-builder': require('./dist/index.js'),
},
globals: {
builder: require('./dist/index.js'),
},
};
Loading

0 comments on commit 26e2634

Please sign in to comment.