|
4 | 4 | # .github/workflows/ |
5 | 5 |
|
6 | 6 | ## Purpose |
| 7 | + |
7 | 8 | GitHub Actions CI/CD workflow definitions. Uses a reusable workflow pattern where `ci.yml` orchestrates calls to specialized reusable workflows (prefixed with `_`). Covers build validation, testing, linting, security scanning, Docker publishing, documentation deployment, and releases. |
8 | 9 |
|
9 | 10 | ## Key Files |
10 | 11 |
|
11 | | -| File | Description | |
12 | | -|------|-------------| |
13 | | -| `ci.yml` | Main CI orchestrator — triggers on PR and push, calls reusable workflows | |
14 | | -| `release.yml` | Release workflow — publishes npm packages and Docker images on tags | |
15 | | -| `security-scheduled.yml` | Scheduled security scan (runs on cron schedule) | |
16 | | -| `_build.yml` | Reusable: runs `npm build` and validates compilation | |
17 | | -| `_test.yml` | Reusable: runs `npm test` with coverage | |
18 | | -| `_test-ci.yml` | Reusable: CI-optimized test run (with caching) | |
19 | | -| `_lint.yml` | Reusable: runs ESLint and Prettier checks | |
20 | | -| `_security.yml` | Reusable: njsscan + dependency audit | |
21 | | -| `_docker-publish.yml` | Reusable: builds and pushes Docker image to registry | |
22 | | -| `_docs.yml` | Reusable: deploys Swagger docs to GitHub Pages | |
| 12 | +| File | Description | |
| 13 | +| ------------------------ | ------------------------------------------------------------------------ | |
| 14 | +| `ci.yml` | Main CI orchestrator — triggers on PR and push, calls reusable workflows | |
| 15 | +| `release.yml` | Release workflow — publishes npm packages and Docker images on tags | |
| 16 | +| `security-scheduled.yml` | Scheduled security scan (runs on cron schedule) | |
| 17 | +| `_build.yml` | Reusable: runs `npm build` and validates compilation | |
| 18 | +| `_test.yml` | Reusable: runs `npm test` with coverage | |
| 19 | +| `_test-ci.yml` | Reusable: CI-optimized test run (with caching) | |
| 20 | +| `_lint.yml` | Reusable: runs Biome checks | |
| 21 | +| `_security.yml` | Reusable: njsscan + dependency audit | |
| 22 | +| `_docker-publish.yml` | Reusable: builds and pushes Docker image to registry | |
| 23 | +| `_docs.yml` | Reusable: deploys Swagger docs to GitHub Pages | |
23 | 24 |
|
24 | 25 | ## For AI Agents |
25 | 26 |
|
26 | 27 | ### Working In This Directory |
| 28 | + |
27 | 29 | - All reusable workflows start with `_` — call them from `ci.yml` via `uses: ./.github/workflows/_xxx.yml` |
28 | 30 | - Secrets referenced: `NPM_TOKEN`, `DOCKER_USERNAME`, `DOCKER_PASSWORD`, `GITHUB_TOKEN` |
29 | 31 | - Node.js version is pinned via `.node-version` file at the repo root |
|
0 commit comments