upload exact CI source for reproducible debugging #191
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', 'agent/**'] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| cache-dependency-path: global-template/docgen/package.json | |
| - name: Syntax check | |
| working-directory: global-template/docgen | |
| run: npm run check | |
| - name: Unit and integration tests | |
| working-directory: global-template/docgen | |
| run: npm test | |
| - name: Installer dry run | |
| run: node install.mjs --dry-run --no-link-cli | |
| - name: Upload exact CI source | |
| if: always() && matrix.node-version == 24 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: docgen-ci-source | |
| if-no-files-found: error | |
| retention-days: 3 | |
| path: | | |
| global-template/docgen | |
| global-template/docgen/project-template | |
| install.mjs | |
| VERSION |