Add DeepWiki badge to README #30
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 ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Run unit tests | |
| run: npm test | |
| - name: Generate examples | |
| run: npm run generate:examples | |
| - name: Verify examples generated | |
| run: | | |
| if [ ! -f "examples/modes/10_dirty_data_compact.zonf" ]; then | |
| echo "Error: 10_dirty_data.zonf not generated" | |
| exit 1 | |
| fi | |
| if [ ! -f "examples/modes/13_deep_recursion_compact.zonf" ]; then | |
| echo "Error: 13_deep_recursion.zonf not generated" | |
| exit 1 | |
| fi | |
| - name: Verify roundtrip (examples) | |
| run: npx ts-node scripts/verify_roundtrip_modes.ts | |
| - name: Verify roundtrip (comprehensive) | |
| run: node benchmarks/scripts/verify-comprehensive-roundtrip.js | |
| - name: Run token efficiency benchmarks | |
| # Only run benchmarks on the latest node version to save time/resources | |
| if: matrix.node-version == '22.x' | |
| run: npm run benchmark | |
| - name: Upload benchmark results | |
| if: matrix.node-version == '22.x' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: benchmark-results | |
| path: benchmarks/results/*.json | |
| retention-days: 30 |