fix(seo): valid robots.txt syntax and trailing-slash gallery canonical #33
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: CI | |
| on: | |
| push: | |
| branches: [main, 'feature/**', 'feat/**', 'fix/**', 'refactor/**', 'chore/**'] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint-and-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Copy database files | |
| run: npm run copy-db | |
| - name: Sync learn content | |
| run: npm run sync | |
| - name: Validate citations | |
| run: npm run validate:citations | |
| - name: Validate question bank | |
| if: ${{ hashFiles('src/content/questions/**/*.yaml') != '' }} | |
| run: npm run validate:questions | |
| - name: Type check | |
| run: npx astro check | |
| - name: Build | |
| run: npm run build |