name: Run Unit Test For SDKs on: pull_request: branches: - main paths: - sdks/** - package.json - pnpm-lock.yaml - pnpm-workspace.yaml concurrency: group: sdk-tests-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: build: name: unit test for Node.js SDK runs-on: depot-ubuntu-24.04 defaults: run: working-directory: sdks/nodejs-client steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - name: Use Node.js uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 22 cache: '' cache-dependency-path: 'pnpm-lock.yaml' - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Test run: pnpm test