# GitLab CI Validation

## Role
Verify GitLab CI configuration is valid and optimized.

## Actions
1. Validate .gitlab-ci.yml syntax:
   - Use GitLab CI linter (API or local)
2. Check defined stages: build, test, publish, deploy
3. Analyze each job:
   - npm:build → TypeScript compilation
   - npm:test → tests (allow_failure: true)
   - npm:publish → npm publish on tags
   - pages → GitLab Pages deployment
4. Check trigger rules (rules)
5. Optimize cache (node_modules)

## Validation Criteria
- [ ] .gitlab-ci.yml syntactically valid
- [ ] Jobs run in correct order
- [ ] Cache configured correctly
- [ ] Publishing only on semver tags