- TypeScript-to-ASL compiler now supports JSONata as the default quer… #8
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] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18, 20, 22] | |
| 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: Test with reports | |
| run: npm run test:ci | |
| env: | |
| JEST_JUNIT_OUTPUT_DIR: build/reports/jest | |
| JEST_JUNIT_OUTPUT_NAME: junit.xml | |
| - name: Test report | |
| uses: mikepenz/action-junit-report@v5 | |
| if: always() | |
| with: | |
| report_paths: build/reports/jest/junit.xml | |
| - name: Upload coverage artifact | |
| uses: actions/upload-artifact@v4 | |
| if: always() && matrix.node-version == 22 | |
| with: | |
| name: coverage-report | |
| path: build/reports/coverage/ | |
| - name: Coverage summary | |
| uses: irongut/CodeCoverageSummary@v1.3.0 | |
| if: always() && matrix.node-version == 22 | |
| with: | |
| filename: build/reports/coverage/cobertura-coverage.xml | |
| format: markdown | |
| output: both | |
| - name: Add coverage to PR | |
| uses: marocchino/sticky-pull-request-comment@v2 | |
| if: github.event_name == 'pull_request' && matrix.node-version == 22 | |
| with: | |
| path: code-coverage-results.md |