-
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.
- Loading branch information
Showing
367 changed files
with
38,834 additions
and
15,817 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,2 @@ | ||
/python @angrybayblade @tushar-composio | ||
/js @himanshu-dixit @plxity |
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 |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: JS Example Tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
working-directory: | ||
required: false | ||
type: string | ||
api_key: | ||
required: false | ||
type: string | ||
base_url: | ||
required: false | ||
type: string | ||
author: | ||
required: false | ||
type: string | ||
commit_message: | ||
required: false | ||
type: string | ||
dont_notify: | ||
required: false | ||
type: boolean | ||
workflow_dispatch: | ||
inputs: | ||
working-directory: | ||
required: false | ||
type: string | ||
api_key: | ||
required: false | ||
type: string | ||
base_url: | ||
required: false | ||
type: string | ||
author: | ||
required: false | ||
type: string | ||
commit_message: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
run-js-tests: | ||
name: Run JS Example Tests | ||
defaults: | ||
run: | ||
working-directory: ${{ inputs.working-directory }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
node-version: ["18"] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
|
||
- name: Install Dependencies | ||
run: | | ||
pnpm install @ai-sdk/openai ai composio-core dotenv zod | ||
- name: Run Tests | ||
env: | ||
DOCKER_USER: ${{secrets.DOCKER_USER}} | ||
OPENAI_API_KEY: ${{secrets.OPENAI_API_KEY}} | ||
JULEP_API_KEY: ${{secrets.JULEP_API_KEY}} | ||
JULEP_API_URL: ${{secrets.JULEP_API_URL}} | ||
LISTENNOTES_API_KEY: ${{secrets.LISTENNOTES_API_KEY}} | ||
COMPOSIO_API_KEY: ${{ inputs.api_key || secrets.COMPOSIO_API_KEY_RELEASE }} | ||
COMPOSIO_BASE_URL: 'https://backend.composio.dev' | ||
run: | | ||
pnpm exec jest tests/test_examples.test.js | ||
- name: Slack Notification on Failure | ||
if: ${{ failure() && github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'release') && !contains(github.event.head_commit.message, 'Release') && !inputs.dont_notify }} | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_TECH_WEBHOOK }} | ||
SLACK_TITLE: "JS Example Tests Failed" | ||
SLACK_MSG_AUTHOR: ${{ inputs.author || github.actor }} | ||
SLACK_MESSAGE: "<@Apoorv> <@kaavee> ${{ inputs.commit_message || github.event.head_commit.message }}" | ||
SLACK_LINK_NAMES: "true" | ||
SLACK_COLOR: "failure" | ||
SLACK_USERNAME: "GitHub Actions Bot" | ||
SLACK_ICON_EMOJI: ":x:" | ||
SLACK_FOOTER: "Failed Example Tests | GitHub Actions" |
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,42 @@ | ||
name: Check Linting and Formatting (JS) | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**/*.js' | ||
- '**/*.ts' | ||
pull_request: | ||
paths: | ||
- '**/*.js' | ||
- '**/*.ts' | ||
|
||
jobs: | ||
lint-and-prettify: | ||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
working-directory: js | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install pnpm | ||
run: npm install -g pnpm | ||
|
||
- name: Install packages in js folder | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Run ESLint | ||
run: pnpm run eslint | ||
continue-on-error: false | ||
|
||
- name: Run Prettier | ||
run: pnpm run prettier:check | ||
continue-on-error: false |
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,21 @@ | ||
name: PR Title check | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- reopened | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.