TypeScript implementation (@nlighten/json-transform) [WIP] #23
This file contains 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-core Test | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- javascript/json-transform-core/** | |
# 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 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
cache-dependency-path: ./javascript/json-transform-core/package-lock.json | |
- name: Install dependencies | |
working-directory: ./javascript/json-transform-core | |
run: npm ci | |
- name: Run tests | |
working-directory: ./javascript/json-transform-core | |
run: npm test |