Skip to content

Merge pull request #3 from edgeandnode/ma/111-official-langchain-example #11

Merge pull request #3 from edgeandnode/ma/111-official-langchain-example

Merge pull request #3 from edgeandnode/ma/111-official-langchain-example #11

Workflow file for this run

name: Typescript CI
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
env:
NODE_VERSION: "22.x"
jobs:
build:
name: "ts: build"
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=6144
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: package.json
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: typescript/examples/*/dist
retention-days: 1
lint-format-test:
name: "ts: ${{ matrix.cmd }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cmd: [lint, format, test]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: package.json
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run ${{ matrix.cmd }}
run: pnpm ${{ matrix.cmd }}