# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs name: Node.js Integration Tests on: workflow_dispatch: permissions: contents: read jobs: build: strategy: matrix: os: [macos-latest, windows-latest, ubuntu-latest] node-version: [22.23.4] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup pnpm uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: ${{ matrix.node-version }} cache: "pnpm" - name: Install dependencies run: pnpm install --frozen-lockfile - run: pnpm --filter langchain build - run: pnpm --filter langchain run test:integration