tool-test-sdks.yaml 790 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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]
  18. defaults:
  19. run:
  20. working-directory: sdks/nodejs-client
  21. steps:
  22. - uses: actions/checkout@v4
  23. - name: Use Node.js ${{ matrix.node-version }}
  24. uses: actions/setup-node@v4
  25. with:
  26. node-version: ${{ matrix.node-version }}
  27. cache: ''
  28. cache-dependency-path: 'yarn.lock'
  29. - name: Install Dependencies
  30. run: yarn install
  31. - name: Test
  32. run: yarn test