Skip to content

Commit 295afe3

Browse files
authored
Merge branch 'main' into feat/rate-limit-implementation
2 parents a2682f9 + 90b655d commit 295afe3

1,544 files changed

Lines changed: 197062 additions & 28908 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/tall-birds-invite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@voltagent/core": patch
3+
---
4+
5+
fix: use OpenAI-compatible adapter for MiniMax provider

.github/workflows/prerelease.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,28 @@ jobs:
5252
- name: Test Package
5353
run: lerna run test --scope "${{ steps.scope.outputs.scope }}"
5454

55+
e2e-tests:
56+
runs-on: ubuntu-latest
57+
name: E2E Tests
58+
steps:
59+
- uses: actions/checkout@v4
60+
- uses: pnpm/action-setup@v4
61+
- uses: actions/setup-node@v4
62+
with:
63+
node-version: 20
64+
cache: "pnpm"
65+
- name: Install Dependencies
66+
run: pnpm install
67+
env:
68+
NODE_OPTIONS: "--max-old-space-size=8192"
69+
- name: Build E2E Dependencies
70+
run: pnpm lerna run build --scope @voltagent/e2e --include-dependencies
71+
- name: Run E2E Tests
72+
run: pnpm --filter @voltagent/e2e test
73+
5574
prerelease:
5675
name: Prerelease
57-
needs: test-packages
76+
needs: [test-packages, e2e-tests]
5877
runs-on: ubuntu-latest
5978
permissions:
6079
contents: write

.github/workflows/pull-request.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,56 @@ jobs:
172172
npm run test:integration:ci
173173
env:
174174
DATABASE_URL: postgresql://test:test@localhost:5432/voltagent_test
175+
176+
e2e-tests:
177+
runs-on: ubuntu-latest
178+
name: E2E Tests
179+
concurrency:
180+
group: ${{ github.ref }}-e2e-tests
181+
cancel-in-progress: true
182+
steps:
183+
- uses: actions/checkout@v4
184+
with:
185+
fetch-depth: 0
186+
187+
- name: Check for E2E-related changes
188+
id: check_e2e
189+
run: |
190+
BASE_SHA="${{ github.event.pull_request.base.sha }}"
191+
192+
if ! git cat-file -e "$BASE_SHA^{commit}" 2>/dev/null; then
193+
git fetch origin "${{ github.event.pull_request.base.ref }}" --depth=1
194+
BASE_SHA="origin/${{ github.event.pull_request.base.ref }}"
195+
fi
196+
197+
if git diff --name-only "$BASE_SHA"...HEAD | grep -E '^(\.github/workflows/pull-request\.yml|packages/e2e/|packages/core/|packages/libsql/|packages/postgres/|packages/internal/|packages/logger/|package\.json|pnpm-lock\.yaml)'; then
198+
echo "e2e_changed=true" >> $GITHUB_OUTPUT
199+
else
200+
echo "e2e_changed=false" >> $GITHUB_OUTPUT
201+
fi
202+
203+
- name: Skip if no E2E-related changes
204+
if: steps.check_e2e.outputs.e2e_changed == 'false'
205+
run: echo "No E2E-related changes detected, skipping E2E tests"
206+
207+
- uses: pnpm/action-setup@v4
208+
if: steps.check_e2e.outputs.e2e_changed == 'true'
209+
- uses: actions/setup-node@v4
210+
if: steps.check_e2e.outputs.e2e_changed == 'true'
211+
with:
212+
node-version: 20
213+
cache: "pnpm"
214+
215+
- name: Install Dependencies
216+
if: steps.check_e2e.outputs.e2e_changed == 'true'
217+
run: pnpm install
218+
env:
219+
NODE_OPTIONS: "--max-old-space-size=8192"
220+
221+
- name: Build E2E Dependencies
222+
if: steps.check_e2e.outputs.e2e_changed == 'true'
223+
run: pnpm lerna run build --scope @voltagent/e2e --include-dependencies
224+
225+
- name: Run E2E Tests
226+
if: steps.check_e2e.outputs.e2e_changed == 'true'
227+
run: pnpm --filter @voltagent/e2e test

.github/workflows/release.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,27 @@ jobs:
4848
- name: Test Package
4949
run: lerna run test --scope "${{ steps.scope.outputs.scope }}"
5050

51+
e2e-tests:
52+
runs-on: ubuntu-latest
53+
name: E2E Tests
54+
steps:
55+
- uses: actions/checkout@v4
56+
- uses: pnpm/action-setup@v4
57+
- uses: actions/setup-node@v4
58+
with:
59+
node-version: 20
60+
cache: "pnpm"
61+
- name: Install Dependencies
62+
run: pnpm install
63+
env:
64+
NODE_OPTIONS: "--max-old-space-size=8192"
65+
- name: Build E2E Dependencies
66+
run: pnpm lerna run build --scope @voltagent/e2e --include-dependencies
67+
- name: Run E2E Tests
68+
run: pnpm --filter @voltagent/e2e test
69+
5170
publish:
52-
needs: test-packages
71+
needs: [test-packages, e2e-tests]
5372
permissions:
5473
contents: write
5574
id-token: write

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ dist
142142

143143
# VoltAgent
144144
.voltagent
145+
packages/core/docs
145146

146147
# Create VoltAgent App
147148
!packages/create-voltagent-app/templates/base/.env
@@ -164,6 +165,9 @@ vitest.config.*.timestamp*
164165

165166
# claude
166167
.claude
168+
skills
169+
!packages/core/src/workspace/skills
170+
!packages/core/src/workspace/skills/**
167171

168172
dev-debug.log
169173
node_modules/
@@ -173,3 +177,11 @@ node_modules/
173177
!packages/core/src/observability/logs
174178
# Local Netlify folder
175179
.netlify
180+
181+
182+
# serena
183+
.serena
184+
185+
186+
# example skills
187+
!examples/with-workspace/workspace/skills

.husky/pre-commit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx lint-staged
4+
cd "$(git rev-parse --show-toplevel)" || exit 1
5+
6+
npx lint-staged --config package.json

0 commit comments

Comments
 (0)