Added Workflow to verify ambassaor.json schema #9
This file contains 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 Ambassadors JSON | |
on: | |
push: | |
paths: | |
- 'programs/ambassadors/ambassadors.json' | |
pull_request: | |
paths: | |
- 'programs/ambassadors/ambassadors.json' | |
jobs: | |
validate-json: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Install Dependencies | |
run: npm install ajv | |
- name: List directory contents | |
run: ls -R | |
- name: Validate ambassadors.json | |
run: | | |
node utils/validate-ambassadors.js |