Breadcrumbing for AI and Ecology course - events #17
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 events | |
| on: | |
| pull_request: | |
| paths: | |
| - "data/events.json" | |
| - "html/events/**" | |
| - "images/events-images/**" | |
| - "package.json" | |
| - "scripts/validate-events.mjs" | |
| - ".github/workflows/validate-events.yml" | |
| push: | |
| paths: | |
| - "data/events.json" | |
| - "html/events/**" | |
| - "images/events-images/**" | |
| - "package.json" | |
| - "scripts/validate-events.mjs" | |
| - ".github/workflows/validate-events.yml" | |
| jobs: | |
| validate-events: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Validate event data | |
| run: npm run validate:events |