-
Notifications
You must be signed in to change notification settings - Fork 50
pull request #244
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
Draft
aUsABuisnessman
wants to merge
6
commits into
elizaOS:main
Choose a base branch
from
aUsABuisnessman:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
pull request #244
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d4bdfb4
Create java11.yml
aUsABuisnessman c879659
Merge branch 'elizaOS:main' into main
aUsABuisnessman 7902cd8
Merge branch 'elizaOS:main' into main
aUsABuisnessman 61fc9ae
Merge branch 'elizaOS:main' into main
aUsABuisnessman 9d61d76
Merge branch 'elizaOS:main' into main
aUsABuisnessman 93611d7
main
aUsABuisnessman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,176 @@ | ||
| name: PR Checks | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [labels] | ||
|
|
||
| env: | ||
| DATA_DIR: "data" | ||
| PIPELINE_DATA_BRANCH: "_data" | ||
|
|
||
|
aUsABuisnessman marked this conversation as resolved.
|
||
| jobs: | ||
| check: | ||
| name: Lint & Typecheck | ||
| runs-on: ubuntu-Alpine | ||
|
aUsABuisnessman marked this conversation as resolved.
|
||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version: latest | ||
|
|
||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile | ||
|
|
||
| - name: Run linting | ||
| run: bun run lint | ||
|
|
||
| - name: Run typecheck | ||
| run: bun run typecheck | ||
|
|
||
| build: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code (PR Branch) | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version: latest | ||
|
|
||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile | ||
|
|
||
| # Set up pipeline-data branch and restore data | ||
| - name: Setup pipeline-data branch | ||
| uses: ./.github/actions/pipeline-data | ||
| with: | ||
| operation: setup | ||
| branch_name: ${{ env.PIPELINE_DATA_BRANCH }} | ||
| data_dir: ${{ env.DATA_DIR }} | ||
|
|
||
| # Restore database from dump | ||
| - name: Restore database | ||
| uses: ./.github/actions/restore-db | ||
| with: | ||
| operation: restore | ||
| dump_dir: ${{ env.DATA_DIR }}/dump | ||
| db_path: ${{ env.DATA_DIR }}/db.sqlite | ||
|
|
||
| - name: Initialize DB | ||
| run: bun run db:migrate | ||
|
|
||
| - name: Run build | ||
| run: bun run build | ||
| env: | ||
| NEXT_TELEMETRY_DISABLED: 1 | ||
| CI: true | ||
| NEXT_PUBLIC_GITHUB_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_GITHUB_CLIENT_ID }} | ||
| NEXT_PUBLIC_AUTH_WORKER_URL: ${{ secrets.NEXT_PUBLIC_AUTH_WORKER_URL }} | ||
| # Cleanup worktree (always runs) | ||
| - name: Cleanup | ||
| if: always() | ||
| uses: ./.github/actions/pipeline-data | ||
| with: | ||
| operation: cleanup | ||
| branch_name: ${{ env.PIPELINE_DATA_BRANCH }} | ||
| data_dir: ${{ env.DATA_DIR }} | ||
|
|
||
| test-pipelines: | ||
| name: Test Pipelines | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version: latest | ||
|
|
||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile | ||
|
|
||
| - name: Setup pipeline-data branch | ||
| uses: ./.github/actions/pipeline-data | ||
| with: | ||
| operation: setup | ||
| branch_name: ${{ env.PIPELINE_DATA_BRANCH }} | ||
| data_dir: ${{ env.DATA_DIR }} | ||
|
|
||
| - name: Restore database | ||
| uses: ./.github/actions/restore-db | ||
| with: | ||
| operation: restore | ||
| dump_dir: ${{ env.DATA_DIR }}/dump | ||
| db_path: ${{ env.DATA_DIR }}/db.sqlite | ||
|
|
||
| - name: Initialize DB | ||
| run: bun run db:migrate | ||
|
|
||
| - name: Run Ingest Pipeline | ||
| run: bun run pipeline ingest -d 1 | ||
|
|
||
| - name: Run Process Pipeline | ||
| run: bun run pipeline process | ||
|
|
||
| - name: Run Export Pipeline | ||
| run: bun run pipeline export -d 7 | ||
|
|
||
| # Cleanup worktree (always runs) | ||
| - name: Cleanup | ||
| if: always() | ||
| uses: ./.github/actions/pipeline-data | ||
| with: | ||
| operation: cleanup | ||
| branch_name: ${{ env.PIPELINE_DATA_BRANCH }} | ||
| data_dir: ${{ env.DATA_DIR }} | ||
|
|
||
| check-migrations: | ||
| name: Check Schema Migration | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 2 | ||
|
|
||
| - name: Check if schema.ts was modified | ||
| id: check-schema | ||
| run: | | ||
| if git diff --name-only HEAD^ HEAD | grep -q "src/lib/data/schema.ts"; then | ||
| echo "Schema file was modified, checking migrations..." | ||
| echo "is_modified=true" >> $GITHUB_OUTPUT | ||
| else | ||
| echo "Schema file was not modified, skipping migration check." | ||
| echo "is_modified=false" >> $GITHUB_OUTPUT | ||
| fi | ||
|
|
||
| - name: Setup Bun | ||
| if: steps.check-schema.outputs.is_modified == 'true' | ||
| uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version: latest | ||
|
|
||
| - name: Install dependencies | ||
| if: steps.check-schema.outputs.is_modified == 'true' | ||
| run: bun install --frozen-lockfile | ||
|
|
||
| - name: Check migrations | ||
| if: steps.check-schema.outputs.is_modified == 'true' | ||
| run: | | ||
| output=$(bun run db:generate) | ||
| echo "$output" | ||
| if ! echo "$output" | grep -q "No schema changes, nothing to migrate"; then | ||
| echo "::error::schema.ts is out of sync with migration files. Please run 'bun run db:generate' to update." | ||
| exit 1 | ||
| fi | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.