Skip to content
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

Added PALM-2 api #284

Closed
wants to merge 48 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
74dfba6
Typescript restructuring
Aug 21, 2023
a1d5f5d
added dir
Aug 21, 2023
2aad4d3
Jsonnet Parsing (#218)
Harsh4902 Sep 13, 2023
feebab3
Create prettier-js-format.yml
sandys Sep 18, 2023
e94c773
Update prettier-js-format.yml
sandys Sep 18, 2023
3317f56
Update prettier-js-format.yml
sandys Sep 18, 2023
0a9a348
Update prettier-js-format.yml
sandys Sep 18, 2023
7634c2c
HydeExample (#239)
Harsh4902 Sep 26, 2023
04a6f49
Code added for semantic search (#245)
Harsh4902 Oct 2, 2023
dfa3d27
Made classes for library of edgechain in ts (#257)
Harsh4902 Oct 24, 2023
7ce27d2
Test case for hyde-search (#259)
Sadaf-A Nov 5, 2023
1577fdd
Update prettier-js-format.yml
sandys Nov 9, 2023
bef6685
Update prettier-js-format.yml
sandys Nov 9, 2023
877de5e
Update prettier-js-format.yml
sandys Nov 9, 2023
690b94f
Update README.md
sandys Nov 9, 2023
fbcd0ec
Automatically applying Prettier changes
actions-user Nov 9, 2023
dc34f31
Update prettier-js-format.yml
sandys Nov 9, 2023
8f11c84
Create .eslintrc.js
sandys Nov 9, 2023
bece17b
Automatically applying Prettier changes
actions-user Nov 9, 2023
d7c213d
Update .eslintrc.js
sandys Nov 9, 2023
3262010
Update prettier-js-format.yml
sandys Nov 9, 2023
01468cb
Update prettier-js-format.yml
sandys Nov 9, 2023
b46b998
Update prettier-js-format.yml
sandys Nov 9, 2023
47ea261
Update prettier-js-format.yml
sandys Nov 9, 2023
c3acb04
Update prettier-js-format.yml
sandys Nov 9, 2023
de68ff7
Update prettier-js-format.yml
sandys Nov 9, 2023
4783d41
Update prettier-js-format.yml
sandys Nov 9, 2023
f3321b0
Update prettier-js-format.yml
sandys Nov 9, 2023
56e5383
Update prettier-js-format.yml
sandys Nov 9, 2023
ac54f08
Update prettier-js-format.yml
sandys Nov 9, 2023
a0c19a8
Update prettier-js-format.yml
sandys Nov 9, 2023
961ee3d
Update prettier-js-format.yml
sandys Nov 9, 2023
b960b84
Supabase connection error on multiple requests (#264)
Harsh4902 Nov 10, 2023
4519756
example added for testcase generation (#265)
Harsh4902 Nov 10, 2023
cacbc43
added: ui for hyde-search (#261)
Sadaf-A Nov 10, 2023
45d7acb
Added build script with esbuild and hyde-search with hono (#266)
Sadaf-A Nov 25, 2023
4046683
Automatically applying Prettier changes
actions-user Nov 25, 2023
877e231
separate html file from controller (#270)
Sadaf-A Nov 25, 2023
1acdbd0
Automatically applying Prettier changes
actions-user Nov 25, 2023
4313b03
ready to publish (#271)
Sadaf-A Nov 26, 2023
c43f582
Automatically applying Prettier changes
actions-user Nov 26, 2023
bcf500e
Feature/npx (#274)
Sadaf-A Nov 27, 2023
5407081
Automatically applying Prettier changes
actions-user Nov 27, 2023
ac69047
Updated OpenAiEndpoint.ts (#276)
Harsh4902 Nov 29, 2023
3f3435a
fix: dual-build (#281)
ezhil56x Nov 30, 2023
2a65690
Update cla.yml
sandys Nov 30, 2023
e8f465b
Removed jsonnet-demo (#283)
Harsh4902 Nov 30, 2023
73243ae
Added palm api
Gmin2 Dec 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .DS_Store
Binary file not shown.
106 changes: 0 additions & 106 deletions .github/workflows/BuildAndRun.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
path-to-document: 'https://github.com/arakoodev/.github/blob/main/CLA.md' # e.g. a CLA or a DCO document
# branch should not be protected
branch: 'main'
allowlist: user1,dependabot-preview[bot], dependabot[bot],github-actions,github-actions[bot],[pre-commit*,pre-commit*,bot*
allowlist: user1,actions-user,dependabot-preview[bot], dependabot[bot],github-actions,github-actions[bot],[pre-commit*,pre-commit*,bot*
custom-pr-sign-comment: 'I have read the Arakoo CLA Document and I hereby sign the CLA'
custom-notsigned-prcomment: 'Thank you for your submission, we really appreciate it. Before we can accept your contribution, we ask that you sign the [Arakoo Contributor License Agreement](https://github.com/arakoodev/.github/blob/main/CLA.md). You can sign the CLA by adding a new comment to this pull request and pasting exactly the following text.'
remote-organization-name: arakoodev
Expand Down
157 changes: 114 additions & 43 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -1,78 +1,149 @@
name: Generate attachments
name: PR Build

on:
# This workflow is started only on PRs
pull_request_target:
types:
pull_request_target:
types:
- opened
- reopened
- synchronize
paths:
- 'Java/**'
- 'JS/**'

jobs:
# Main job
build:
permissions:
# Required to upload/save artifact, otherwise you'll get
# "Error: Resource not accessible by integration"
contents: write
# Required to post comment, otherwise you'll get
# "Error: Resource not accessible by integration"
pull-requests: write

changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
VALUE: ${{ steps.short_hash.outputs.VALUE }}
java: ${{ steps.filter.outputs.java }}
js: ${{ steps.filter.outputs.js }}
steps:
# Put your steps here to generate the files to upload.
# Usually configure Node.js, build, etc.
# Finally, upload the artifacts and post comment:
- name: Checkout PR
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
filters: |
java:
- 'Java/**'
js:
- 'JS/**'

java:
needs: changes
if: ${{ needs.changes.outputs.java == 'true' }}
runs-on: ubuntu-latest
outputs:
VALUE: ${{ steps.set_short_hash.outputs.VALUE }}

# Token for current repo (used to post PR comment)
repo-token: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set SHORT_HASH
id: set_short_hash
run: |
echo "::set-output name=VALUE::${LONG_HASH:0:8}"
echo "RELEASE_TAG=${LONG_HASH:0:8}-$(TZ=UTC-8 date +"%Y.%m.%d")" >> $GITHUB_ENV
id: short_hash
env:
LONG_HASH: ${{ github.sha }}
echo "::set-output name=VALUE::${{ github.sha }}"
echo "RELEASE_TAG=${{ github.sha }}-$(TZ=UTC-8 date +"%Y.%m.%d")" >> $GITHUB_ENV

- name: Goto Java folder
run: cd Java

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
java-version: '17'

- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.3

- name: Create output folder
run: mkdir BuildOutput
run: mkdir -p Java/FlySpring/edgechain-app/BuildOutput

- name: Build edgechain-app project
working-directory: ./FlySpring/edgechain-app
run: mvn clean package -DskipTests
working-directory: Java/FlySpring/edgechain-app
run: mvn clean package -DskipTests

- name: Run edgechain testcases
working-directory: ./FlySpring/edgechain-app
working-directory: Java/FlySpring/edgechain-app
run: mvn test

- name: Copy edgechain-app JAR to Examples folder
run: cp ./FlySpring/edgechain-app/target/edgechain.jar ./BuildOutput/
- name: Copy edgechain-app JAR to BuildOutput
run: cp Java/FlySpring/edgechain-app/target/edgechain.jar Java/FlySpring/edgechain-app/BuildOutput


js:
needs: changes
if: ${{ needs.changes.outputs.js == 'true' }}
permissions:
contents: write
pull-requests: write

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Prettier
run: npm install prettier
- name: Install ESLint
run: >
npm install eslint@latest &&
npm install @microsoft/eslint-formatter-sarif@latest eslint-config-google@latest eslint-plugin-import@latest @typescript-eslint/eslint-plugin@latest @typescript-eslint/parser@latest eslint-config-prettier@latest eslint-plugin-prettier@latest
- name: Get cache date
id: get-date
run: echo "name=date::$(/bin/date -u "+%Y%m%d")"
shell: bash
- name: ESLint Cache
uses: actions/cache@v3
with:
path: ./.eslintcache
key: ${{ runner.os }}-eslintcache-${{ hashFiles('./eslintcache') }}
restore-keys: |
${{ runner.os }}-eslintcache-
- name: Run ESLint
run: npx eslint JS
--fix
--cache
--config JS/.eslintrc.js
--ext .js,.jsx,.ts,.tsx
continue-on-error: true

- name: Run Prettiers
run: npx prettier --tab-width 4 --print-width 100 --trailing-comma es5 --ignore-path "$(CURDIR)/node_modules/*" --write JS/
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automatically applying Prettier changes
commit_user_name: GitHub Actions
commit_user_email: [email protected]
commit_author: GitHub Actions <[email protected]>
branch: ${{ github.head_ref }}

- name: Checkout repository
uses: actions/checkout@v3

- name: Goto JS folder
run: cd JS/edgechains/lib

- name: Upload Examples folder as artifact
uses: actions/upload-artifact@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
name: Output
path: ./BuildOutput/
node-version: '18'

- name: Install dependencies
run: npm install
working-directory: JS/edgechains/lib

- name: Build edgechain-app project
run: npm run build
working-directory: JS/edgechains/lib


- name: Package edgechain-app project
run: npm pack
working-directory: JS/edgechains/lib
78 changes: 78 additions & 0 deletions .github/workflows/release-java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Release Java

on:
workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
outputs:
VALUE: ${{ steps.set_short_hash.outputs.VALUE }}
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set SHORT_HASH
id: set_short_hash
run: |
echo "::set-output name=VALUE::${{ github.sha }}"
echo "RELEASE_TAG=${{ github.sha }}-$(TZ=UTC-8 date +"%Y.%m.%d")" >> $GITHUB_ENV

- name: Goto Java folder
run: cd Java

- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'

- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.9.3

- name: Create output folder
run: mkdir -p Java/FlySpring/edgechain-app/BuildOutput

- name: Build edgechain-app project
working-directory: Java/FlySpring/edgechain-app
run: mvn clean package -DskipTests

- name: Run edgechain testcases
working-directory: Java/FlySpring/edgechain-app
run: mvn test

- name: Copy edgechain-app JAR to Examples folder
run: cp Java/FlySpring/edgechain-app/target/edgechain.jar Java/FlySpring/edgechain-app/BuildOutput

- name: Upload Examples folder as artifact
uses: actions/upload-artifact@v2
with:
name: Output
path: Java/FlySpring/edgechain-app/BuildOutput

release:
name: release-java
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Download jar from build
uses: actions/download-artifact@v2
with:
name: Output
path: Output
- name: Display structure of downloaded files
run: ls -R

- name: Get variables
id: vars
run: echo "tag_name=${{ env.RELEASE_TAG }}" >> $GITHUB_ENV

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
./Output/**/*.*
tag_name: ${{ env.RELEASE_TAG }}
Loading
Loading