Skip to content

Commit 479dee4

Browse files
committed
Test
Signed-off-by: Hubert Zub <hubert.zub@databricks.com>
1 parent 52036de commit 479dee4

File tree

12 files changed

+6629
-13015
lines changed

12 files changed

+6629
-13015
lines changed

.github/workflows/ai-sdk-provider.yml

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,20 @@ jobs:
3434
- name: Checkout code
3535
uses: actions/checkout@v4
3636

37+
- name: Install pnpm
38+
uses: pnpm/action-setup@v4
39+
3740
- name: Setup Node.js
3841
uses: actions/setup-node@v4
3942
with:
4043
node-version: ${{ matrix.node-version }}
44+
cache: "pnpm"
4145

4246
- name: Install dependencies
43-
run: rm -f package-lock.json && npm install
47+
run: pnpm install --frozen-lockfile
4448

4549
- name: Run tests
46-
run: npm run test
50+
run: pnpm run test
4751

4852
lint:
4953
runs-on: ubuntu-latest
@@ -53,16 +57,20 @@ jobs:
5357
- name: Checkout code
5458
uses: actions/checkout@v4
5559

60+
- name: Install pnpm
61+
uses: pnpm/action-setup@v4
62+
5663
- name: Setup Node.js
5764
uses: actions/setup-node@v4
5865
with:
5966
node-version: "20"
67+
cache: "pnpm"
6068

6169
- name: Install dependencies
62-
run: rm -f package-lock.json && npm install
70+
run: pnpm install --frozen-lockfile
6371

6472
- name: Run linter
65-
run: npm run lint
73+
run: pnpm run lint
6674

6775
typecheck:
6876
runs-on: ubuntu-latest
@@ -72,16 +80,20 @@ jobs:
7280
- name: Checkout code
7381
uses: actions/checkout@v4
7482

83+
- name: Install pnpm
84+
uses: pnpm/action-setup@v4
85+
7586
- name: Setup Node.js
7687
uses: actions/setup-node@v4
7788
with:
7889
node-version: "20"
90+
cache: "pnpm"
7991

8092
- name: Install dependencies
81-
run: rm -f package-lock.json && npm install
93+
run: pnpm install --frozen-lockfile
8294

8395
- name: Run typecheck
84-
run: npm run typecheck
96+
run: pnpm run typecheck
8597

8698
format:
8799
runs-on: ubuntu-latest
@@ -91,16 +103,20 @@ jobs:
91103
- name: Checkout code
92104
uses: actions/checkout@v4
93105

106+
- name: Install pnpm
107+
uses: pnpm/action-setup@v4
108+
94109
- name: Setup Node.js
95110
uses: actions/setup-node@v4
96111
with:
97112
node-version: "20"
113+
cache: "pnpm"
98114

99115
- name: Install dependencies
100-
run: rm -f package-lock.json && npm install
116+
run: pnpm install --frozen-lockfile
101117

102118
- name: Check formatting
103-
run: npm run format:check
119+
run: pnpm run format:check
104120

105121
build:
106122
runs-on: ubuntu-latest
@@ -110,16 +126,20 @@ jobs:
110126
- name: Checkout code
111127
uses: actions/checkout@v4
112128

129+
- name: Install pnpm
130+
uses: pnpm/action-setup@v4
131+
113132
- name: Setup Node.js
114133
uses: actions/setup-node@v4
115134
with:
116135
node-version: "20"
136+
cache: "pnpm"
117137

118138
- name: Install dependencies
119-
run: rm -f package-lock.json && npm install
139+
run: pnpm install --frozen-lockfile
120140

121141
- name: Build package
122-
run: npm run build
142+
run: pnpm run build
123143

124144
- name: Check package exports
125-
run: npm run check-package
145+
run: pnpm run check-package

.github/workflows/langchainjs.yml

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,20 @@ jobs:
3434
- name: Checkout code
3535
uses: actions/checkout@v4
3636

37+
- name: Install pnpm
38+
uses: pnpm/action-setup@v4
39+
3740
- name: Setup Node.js
3841
uses: actions/setup-node@v4
3942
with:
4043
node-version: ${{ matrix.node-version }}
44+
cache: "pnpm"
4145

4246
- name: Install dependencies
43-
run: rm -f package-lock.json && npm install
47+
run: pnpm install --frozen-lockfile
4448

4549
- name: Run tests
46-
run: npm run test
50+
run: pnpm run test
4751

4852
lint:
4953
runs-on: ubuntu-latest
@@ -53,16 +57,20 @@ jobs:
5357
- name: Checkout code
5458
uses: actions/checkout@v4
5559

60+
- name: Install pnpm
61+
uses: pnpm/action-setup@v4
62+
5663
- name: Setup Node.js
5764
uses: actions/setup-node@v4
5865
with:
5966
node-version: "20"
67+
cache: "pnpm"
6068

6169
- name: Install dependencies
62-
run: rm -f package-lock.json && npm install
70+
run: pnpm install --frozen-lockfile
6371

6472
- name: Run linter
65-
run: npm run lint
73+
run: pnpm run lint
6674

6775
typecheck:
6876
runs-on: ubuntu-latest
@@ -72,16 +80,20 @@ jobs:
7280
- name: Checkout code
7381
uses: actions/checkout@v4
7482

83+
- name: Install pnpm
84+
uses: pnpm/action-setup@v4
85+
7586
- name: Setup Node.js
7687
uses: actions/setup-node@v4
7788
with:
7889
node-version: "20"
90+
cache: "pnpm"
7991

8092
- name: Install dependencies
81-
run: rm -f package-lock.json && npm install
93+
run: pnpm install --frozen-lockfile
8294

8395
- name: Run typecheck
84-
run: npm run typecheck
96+
run: pnpm run typecheck
8597

8698
format:
8799
runs-on: ubuntu-latest
@@ -91,16 +103,20 @@ jobs:
91103
- name: Checkout code
92104
uses: actions/checkout@v4
93105

106+
- name: Install pnpm
107+
uses: pnpm/action-setup@v4
108+
94109
- name: Setup Node.js
95110
uses: actions/setup-node@v4
96111
with:
97112
node-version: "20"
113+
cache: "pnpm"
98114

99115
- name: Install dependencies
100-
run: rm -f package-lock.json && npm install
116+
run: pnpm install --frozen-lockfile
101117

102118
- name: Check formatting
103-
run: npm run format:check
119+
run: pnpm run format:check
104120

105121
build:
106122
runs-on: ubuntu-latest
@@ -110,16 +126,20 @@ jobs:
110126
- name: Checkout code
111127
uses: actions/checkout@v4
112128

129+
- name: Install pnpm
130+
uses: pnpm/action-setup@v4
131+
113132
- name: Setup Node.js
114133
uses: actions/setup-node@v4
115134
with:
116135
node-version: "20"
136+
cache: "pnpm"
117137

118138
- name: Install dependencies
119-
run: rm -f package-lock.json && npm install
139+
run: pnpm install --frozen-lockfile
120140

121141
- name: Build package
122-
run: npm run build
142+
run: pnpm run build
123143

124144
- name: Check package exports
125-
run: npm run check-package
145+
run: pnpm run check-package

.github/workflows/release-ai-sdk-provider.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727

28+
- name: Install pnpm
29+
uses: pnpm/action-setup@v4
30+
2831
- uses: actions/setup-node@v4
2932
with:
3033
node-version: "20"
3134
registry-url: "https://registry.npmjs.org"
32-
33-
- name: Update npm
34-
run: npm install -g npm@latest
35+
cache: "pnpm"
3536

3637
- name: Install dependencies
37-
run: rm -f package-lock.json && npm install
38+
run: pnpm install --frozen-lockfile
3839

3940
- name: Get package version
4041
id: get-version
@@ -43,27 +44,27 @@ jobs:
4344
echo "version=$PKG_VERSION" >> $GITHUB_OUTPUT
4445
4546
- name: Clean
46-
run: npm run clean
47+
run: pnpm run clean
4748

4849
- name: Build
49-
run: npm run build
50+
run: pnpm run build
5051

5152
- name: Test
52-
run: npm run test
53+
run: pnpm run test
5354

5455
- name: Lint
55-
run: npm run lint
56+
run: pnpm run lint
5657

5758
- name: Check package exports
58-
run: npm run check-package
59+
run: pnpm run check-package
5960

6061
- name: Publish to npm
6162
if: inputs.production
62-
run: npm publish --access public --provenance --ignore-scripts
63+
run: pnpm publish --access public --provenance --no-git-checks
6364

6465
- name: Publish to npm (next tag)
6566
if: ${{ !inputs.production }}
66-
run: npm publish --access public --tag next --provenance --ignore-scripts
67+
run: pnpm publish --access public --tag next --provenance --no-git-checks
6768

6869
- name: Wait for registry propagation
6970
run: sleep 15

.github/workflows/release-langchainjs.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727

28+
- name: Install pnpm
29+
uses: pnpm/action-setup@v4
30+
2831
- uses: actions/setup-node@v4
2932
with:
3033
node-version: "20"
3134
registry-url: "https://registry.npmjs.org"
32-
33-
- name: Update npm
34-
run: npm install -g npm@latest
35+
cache: "pnpm"
3536

3637
- name: Install dependencies
37-
run: rm -f package-lock.json && npm install
38+
run: pnpm install --frozen-lockfile
3839

3940
- name: Get package version
4041
id: get-version
@@ -46,27 +47,27 @@ jobs:
4647
run: rm -rf dist
4748

4849
- name: Build
49-
run: npm run build
50+
run: pnpm run build
5051

5152
- name: Test
52-
run: npm run test
53+
run: pnpm run test
5354

5455
- name: Lint
55-
run: npm run lint
56+
run: pnpm run lint
5657

5758
- name: Check formatting
58-
run: npm run format:check
59+
run: pnpm run format:check
5960

6061
- name: Check package exports
61-
run: npm run check-package
62+
run: pnpm run check-package
6263

6364
- name: Publish to npm
6465
if: inputs.production
65-
run: npm publish --access public --provenance --ignore-scripts
66+
run: pnpm publish --access public --provenance --no-git-checks
6667

6768
- name: Publish to npm (next tag)
6869
if: ${{ !inputs.production }}
69-
run: npm publish --access public --tag next --provenance --ignore-scripts
70+
run: pnpm publish --access public --tag next --provenance --no-git-checks
7071

7172
- name: Wait for registry propagation
7273
run: sleep 15

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ Pipfile
2020
docs/build
2121

2222
**/uv.lock
23+
24+
# Node
25+
node_modules/

0 commit comments

Comments
 (0)