You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tool-test-sdks.yaml 868B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: Run Unit Test For SDKs
  2. on:
  3. pull_request:
  4. branches:
  5. - main
  6. paths:
  7. - sdks/**
  8. concurrency:
  9. group: sdk-tests-${{ github.head_ref || github.run_id }}
  10. cancel-in-progress: true
  11. jobs:
  12. build:
  13. name: unit test for Node.js SDK
  14. runs-on: ubuntu-latest
  15. strategy:
  16. matrix:
  17. node-version: [16, 18, 20, 22]
  18. defaults:
  19. run:
  20. working-directory: sdks/nodejs-client
  21. steps:
  22. - uses: actions/checkout@v4
  23. with:
  24. persist-credentials: false
  25. - name: Use Node.js ${{ matrix.node-version }}
  26. uses: actions/setup-node@v4
  27. with:
  28. node-version: ${{ matrix.node-version }}
  29. cache: ''
  30. cache-dependency-path: 'pnpm-lock.yaml'
  31. - name: Install Dependencies
  32. run: pnpm install --frozen-lockfile
  33. - name: Test
  34. run: pnpm test