java-1.3.0 js-1.9.0 js-core-1.9.0 js-monaco-1.9.0 - new inline functi… #38
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: JavaScript json-transform Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - javascript/json-transform-core/** | |
| - javascript/json-transform/** | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - javascript/json-transform-core/** | |
| - javascript/json-transform/** | |
| # cancel previous tests if new commit is pushed to PR branch | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: setup json-transform-core build | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: ./javascript/json-transform-core/package-lock.json | |
| - name: install json-transform-core dependencies | |
| working-directory: ./javascript/json-transform-core | |
| run: npm ci | |
| - name: build json-transform-core | |
| working-directory: ./javascript/json-transform-core | |
| run: npm run build | |
| - name: setup json-transform build | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: ./javascript/json-transform/package-lock.json | |
| - name: install json-transform dependencies | |
| working-directory: ./javascript/json-transform | |
| run: npm ci | |
| - name: test json-transform | |
| working-directory: ./javascript/json-transform | |
| run: npm test |