Merge pull request #7 from NodeByteHosting/rust-kb #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Knowledge Base Layout | |
| on: | |
| push: | |
| paths: | |
| - 'markdown/kb/articles.json' | |
| pull_request: | |
| paths: | |
| - 'markdown/kb/articles.json' | |
| jobs: | |
| validate-kb: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '14' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Validate Knowledge Base JSON Schema | |
| run: node validation/kb_layout.js |