Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: relocate typescript monorepo using pnpm #259

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,23 @@ jobs:

lint-typescript:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./typescript
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
cache: "pnpm"
cache-dependency-path: ./typescript/pnpm-lock.yaml
# Install dependencies in parent directory first
- run: npm install
- run: pnpm install
# formatting/lint in working directory
- name: Check formatting/lint
run: |
npm run format:check
npm run lint
pnpm run format:check
pnpm run lint
25 changes: 16 additions & 9 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
working-directory: ./python/cdp-agentkit-core
strategy:
matrix:
python: ['3.10', '3.11', '3.12']
python: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -47,8 +47,8 @@ jobs:
working-directory: ./python/cdp-langchain
strategy:
matrix:
python: ['3.10', '3.11', '3.12']
python: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -85,8 +85,8 @@ jobs:
working-directory: ./python/twitter-langchain
strategy:
matrix:
python: ['3.10', '3.11', '3.12']
python: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -121,13 +121,20 @@ jobs:
strategy:
matrix:
node-version: ["18", "20"]
defaults:
run:
working-directory: ./typescript
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache: "pnpm"
cache-dependency-path: ./typescript/pnpm-lock.yaml
- name: Install and test AgentKit.js
run: |
npm i
npm run test
pnpm install
pnpm run test
Loading
Loading