diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 96afff8..eafacee 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -9,14 +9,16 @@ jobs: steps: - uses: actions/checkout@v1 + - name: markdown lit uses: nosborn/github-action-markdown-cli@v1.1.1 with: files: README.md config_file: ".markdownlint.json" - - name: tests + + - name: Checklist uses: actions/setup-node@v1 with: node-version: '12.x' - - run: npm ci - - run: npm test \ No newline at end of file + run: npm ci && npm test + \ No newline at end of file diff --git a/test/main.spec.js b/test/main.spec.js index 692593d..c09fe02 100644 --- a/test/main.spec.js +++ b/test/main.spec.js @@ -8,32 +8,34 @@ var expect = chai.expect; const srcMd = fs.readFileSync('README.md', 'utf8'); -describe('Header', function () { - it('is intact', function () { - expect(srcMd).to.startsWith('# How they SRE'); +describe('Checklist', function () { + describe('Header', function () { + it('is intact', function () { + expect(srcMd).to.startsWith('# How they SRE'); + }); }); -}); -describe('Section Headers', function () { - it('intact', function () { - var expectedH2List = [ - '## Introduction', - '## Organizations', - '## SRECon Mix Playlist', - '## Resources', - '## Credits', - '## Other How They... repos', - '## Contribute', - '## License' - ] - var actualList = srcMd.match(/^## (.*$)/gim); - expect(expectedH2List).to.equalTo(actualList) + describe('Section Headers', function () { + it('intact', function () { + var expectedH2List = [ + '## Introduction', + '## Organizations', + '## SRECon Mix Playlist', + '## Resources', + '## Credits', + '## Other How They... repos', + '## Contribute', + '## License' + ] + var actualList = srcMd.match(/^## (.*$)/gim); + expect(actualList).to.equalTo(expectedH2List) + }); }); -}); -describe('Organization list', function () { - it('is sorted', function () { - var orgList = srcMd.match(/(?<=)(.*?)(?=<\/summary>)/g); - expect(orgList).to.be.sorted(Intl.Collator().compare); + describe('Organization list', function () { + it('is sorted', function () { + var orgList = srcMd.match(/(?<=)(.*?)(?=<\/summary>)/g); + expect(orgList).to.be.sorted(Intl.Collator().compare); + }); }); }); \ No newline at end of file