Skip to content

Commit

Permalink
chore: relocate typescript monorepo using pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRAG committed Feb 4, 2025
1 parent b006ddd commit 8b79a58
Show file tree
Hide file tree
Showing 29 changed files with 6,743 additions and 16,759 deletions.
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 --frozen-lockfile
# 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 --frozen-lockfile
pnpm run test
Loading

0 comments on commit 8b79a58

Please sign in to comment.