-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2361 from elizaOS/develop
chore: dev => main 0.1.9
- Loading branch information
Showing
2,195 changed files
with
250,702 additions
and
16,452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Ignore node_modules from the build context | ||
node_modules | ||
|
||
# Ignore logs and temporary files | ||
*.log | ||
*.tmp | ||
.DS_Store | ||
|
||
# Ignore Git files and metadata | ||
.gitignore | ||
|
||
# Ignore IDE and editor config files | ||
.vscode | ||
.idea | ||
*.swp | ||
|
||
# Ignore build artifacts from the host | ||
dist | ||
build |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Block Minified JavaScript/TypeScript | ||
|
||
on: | ||
pull_request: | ||
branches: ["main", "develop", "*"] | ||
push: | ||
branches: ["main", "develop", "*"] | ||
|
||
jobs: | ||
block-minified-code: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Detect potential minified code | ||
shell: bash | ||
run: | | ||
echo "Scanning for potential minified JS/TS code..." | ||
# We'll look in .ts, .tsx, .js, .jsx files, skipping common build dirs. | ||
FILES=$(find . \ | ||
\( -name 'node_modules' -prune \) -o \ | ||
\( -name 'dist' -prune \) -o \ | ||
\( -name 'build' -prune \) -o \ | ||
-type f \( -name '*.ts' -o -name '*.tsx' -o -name '*.js' -o -name '*.jsx' \) \ | ||
-print) | ||
if [ -z "$FILES" ]; then | ||
echo "No relevant JS/TS files found." | ||
exit 0 | ||
fi | ||
THRESHOLD=1000 | ||
VIOLATIONS=0 | ||
for file in $FILES; do | ||
# Use grep -En to capture line number and text | ||
# If any line is ≥ THRESHOLD chars, we store those lines in RESULTS | ||
RESULTS=$(grep -En ".{${THRESHOLD},}" "$file" || true) | ||
if [ -n "$RESULTS" ]; then | ||
# We have potential minified lines | ||
while IFS= read -r match; do | ||
# 'match' will be something like "1234:the entire matched line" | ||
LINENUM=$(echo "$match" | cut -d: -f1) | ||
# If you want the text, you can do: | ||
# MATCHED_LINE=$(echo "$match" | cut -d: -f2-) | ||
echo "::error file=$file,line=$LINENUM::Detected potential minified code (≥ $THRESHOLD chars)." | ||
done <<< "$RESULTS" | ||
VIOLATIONS=1 | ||
fi | ||
done | ||
if [ "$VIOLATIONS" -eq 1 ]; then | ||
echo "ERROR: Minified code detected. Please remove or exclude it." | ||
exit 1 | ||
else | ||
echo "No minified code detected." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,44 @@ | ||
name: Integration Tests | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
push: | ||
branches: | ||
- "*" | ||
pull_request_target: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
integration-tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
integration-tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
TURBO_REMOTE_ONLY: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9.15.0 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9.15.0 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "23.3.0" | ||
cache: "pnpm" | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "23.3" | ||
cache: "pnpm" | ||
|
||
- name: Clean up | ||
run: pnpm clean | ||
- name: Install dependencies | ||
run: pnpm install --no-frozen-lockfile | ||
|
||
- name: Install dependencies | ||
run: pnpm install -r --no-frozen-lockfile | ||
- name: Build packages | ||
run: pnpm build | ||
|
||
- name: Build packages | ||
run: pnpm build | ||
- name: Check for API key | ||
run: | | ||
if [ -z "$OPENAI_API_KEY" ]; then | ||
echo "Error: OPENAI_API_KEY is not set." | ||
exit 1 | ||
fi | ||
- name: Run integration tests | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
COINBASE_COMMERCE_KEY: ${{ secrets.COINBASE_COMMERCE_KEY }} | ||
run: | | ||
pnpm run integrationTests | ||
- name: Run integration tests | ||
run: pnpm run integrationTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Merge Group Checks | ||
on: | ||
merge_group: | ||
types: [checks_requested] | ||
jobs: | ||
minimal-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Always pass | ||
run: echo "All good!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
|
||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
version: 9.15.0 | ||
|
||
- name: Configure Git | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
name: smoke-test | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
smoke-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
smoke-tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
TURBO_REMOTE_ONLY: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9.15.0 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 9.15.0 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "23.3.0" | ||
cache: "pnpm" | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: "23.3" | ||
cache: "pnpm" | ||
|
||
- name: Run smoke tests | ||
run: pnpm run smokeTests | ||
- name: Run smoke tests | ||
run: pnpm run smokeTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.