Upgrade exemplar to multi-resource stencil with full test coverage #9
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: test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| clify: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: ["20", "22"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: clify unit tests | |
| run: npm test | |
| - name: validate exemplar | |
| run: node bin/clify.mjs validate examples/exemplar-cli | |
| - name: exemplar tests | |
| working-directory: examples/exemplar-cli | |
| run: npm test | |
| - name: scaffold-init smoke (full round-trip) | |
| run: | | |
| tmp=$(mktemp -d) | |
| node bin/clify.mjs scaffold-init demo-api --target "$tmp" | |
| node bin/clify.mjs validate "$tmp/demo-api-cli" |