Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
305 commits
Select commit Hold shift + click to select a range
ad18f97
Automatically applying Prettier changes
actions-user Dec 18, 2023
043a6e1
Added Java code into ts branch (#297)
Harsh4902 Dec 18, 2023
291c748
Automatically applying Prettier changes
actions-user Dec 20, 2023
0da013c
ReAct chain example created (#298)
Harsh4902 Dec 20, 2023
9d824eb
fix: wasm build (#299)
ezhil56x Dec 20, 2023
e6c1752
Automatically applying Prettier changes
actions-user Dec 26, 2023
2c493fb
Add JSONnet support and update dependencies (#300)
rahul007-bit Dec 26, 2023
c2c7bad
Automatically applying Prettier changes
actions-user Dec 26, 2023
330e407
Fix formatting in JS/wasm files (#301)
rahul007-bit Dec 27, 2023
e839341
Update README.md
Dec 31, 2023
58c0eac
Automatically applying Prettier changes
actions-user Jan 7, 2024
b74722a
Add Example of Jsonnet (#302)
rahul007-bit Jan 8, 2024
df7aa7a
Update security-scan.yml
Jan 9, 2024
eb20475
Fix Missing Dependency, Wrong Relative paths (#304)
parteek2813 Jan 12, 2024
400ce2a
Delete .github/workflows/security-scan.yml
Jan 12, 2024
d2e2465
add wasi modules for jsonnet with external vars
rahul007-bit Jan 18, 2024
01d2a18
Automatically applying Prettier changes
actions-user Jan 18, 2024
51307fd
Merge branch 'ts' into ts
rahul007-bit Jan 18, 2024
ccfc0a1
add wasi modules for jsonnet with external vars (#306)
rahul007-bit Jan 19, 2024
537b3bc
Update README.md (#305)
Sajiyah-Salat Jan 22, 2024
688bc0b
React-Chain-Code-Updated and Readme file Added-02 (#310)
MSaifKhan01 Jan 23, 2024
1b1216b
Merge branch 'ts' of github.com:arakoodev/EdgeChains into ts
rahul007-bit Jan 27, 2024
b564c0f
merge ts with local
rahul007-bit Jan 27, 2024
33f5c94
Update dependencies, remove unused code, and add wasm version of jsonnet
rahul007-bit Jan 27, 2024
0c6b23f
Automatically applying Prettier changes
actions-user Jan 27, 2024
c83f892
update repo with ts branch
rahul007-bit Jan 28, 2024
9d16384
revamp wasm compilation and serve flow
rahul007-bit Feb 4, 2024
b76bee7
Automatically applying Prettier changes
actions-user Feb 4, 2024
3bf3c0a
merge origin
rahul007-bit Feb 4, 2024
0aa97b4
fix the response Body
rahul007-bit Feb 9, 2024
5226527
Automatically applying Prettier changes
actions-user Feb 9, 2024
e92f05a
simple working example of jsonnet
rahul007-bit Feb 17, 2024
da14f61
complete jsonnet implementaion at wasmtime
rahul007-bit Feb 17, 2024
4ebee3d
fix jsonnet_eval function
rahul007-bit Feb 18, 2024
94642a3
add support for ext_string
rahul007-bit Feb 18, 2024
f135a39
add docs in binding.rs
rahul007-bit Feb 18, 2024
37c475c
add docs to run function
rahul007-bit Feb 18, 2024
b03ff2c
fix http response at hyper side
rahul007-bit Feb 19, 2024
7d7fe97
working example for nodejs with jsonnet
rahul007-bit Feb 19, 2024
3070aeb
add readme to jsonnet library
rahul007-bit Feb 24, 2024
c87a7ff
update the workflow of webassembly
rahul007-bit Feb 27, 2024
bd96502
Merge branch 'arakoodev:ts' into wasm
rahul007-bit Feb 27, 2024
cb01798
add support for evaluateFile
rahul007-bit Feb 27, 2024
e2d3179
updated hydesearch example
rahul007-bit Feb 29, 2024
0633c21
updated edgechain examples with arakoov/jsonnet
rahul007-bit Feb 29, 2024
a0f15bc
fix shims build and upload release
rahul007-bit Feb 29, 2024
9e75928
Add WebAssembly support for Jsonnet evaluation (#314)
rahul007-bit Feb 29, 2024
c221b46
fix github action for wasm release
rahul007-bit Feb 29, 2024
5b89528
Merge branch 'ts' of github.com:arakoodev/EdgeChains into wasm-v2
rahul007-bit Feb 29, 2024
236ef03
Update webassembly-pr-build.yml (#316)
rahul007-bit Feb 29, 2024
869a8ef
Merge branch 'ts' into wasm-v2
rahul007-bit Mar 1, 2024
120490d
Fix wasm workflow (#318)
rahul007-bit Mar 1, 2024
938cbeb
Merge branch 'ts' into wasm-v2
rahul007-bit Mar 1, 2024
279ea84
Update build.sh
rahul007-bit Mar 1, 2024
a392bc3
Update webassembly-pr-build.yml (#319)
rahul007-bit Mar 1, 2024
ab90e18
Merge branch 'arakoodev:ts' into wasm-v2
rahul007-bit Mar 1, 2024
3d777d0
add worflow_dispatch for wasm release
rahul007-bit Mar 1, 2024
bc20a5d
Update release-wasm.yml
rahul007-bit Mar 1, 2024
e8cd8c2
Fix release-wasm.yml
rahul007-bit Mar 1, 2024
3c1271c
Update release-wasm.yml
rahul007-bit Mar 1, 2024
30fd17f
sperated serve from javy
rahul007-bit Mar 1, 2024
afc2856
Moved Test01 directory into JS/edgechains/examples/
rahul007-bit Mar 1, 2024
804f4d7
Update dependencies to version 0.1.2
rahul007-bit Mar 1, 2024
0e57f34
fix pr build action
rahul007-bit Mar 1, 2024
63a41d5
change the wasm build action
rahul007-bit Mar 1, 2024
0a0d0f3
Merge branch 'ts' of github.com:arakoodev/EdgeChains into ts
rahul007-bit Mar 1, 2024
7ddede4
Merge branch 'wasm-v2' of github.com:rahul007-bit/EdgeChains into was…
rahul007-bit Mar 1, 2024
3c64cb4
Automatically applying Prettier changes
actions-user Mar 1, 2024
fd513ba
Merge branch 'ts' of github.com:arakoodev/EdgeChains into wasm-v2
rahul007-bit Mar 1, 2024
3b67eef
update release wasm action
rahul007-bit Mar 1, 2024
7b5b090
Update release-wasm.yml
rahul007-bit Mar 1, 2024
e2cf2c2
Update release-wasm.yml
rahul007-bit Mar 1, 2024
b50ea76
Merge branch 'ts' into wasm-v2
rahul007-bit Mar 1, 2024
6ff0245
Merge pull request #317 from rahul007-bit/wasm-v2
rahul007-bit Mar 1, 2024
54a9719
Automatically applying Prettier changes
actions-user Mar 1, 2024
88bd5a7
Add bin copies and update artifact names
rahul007-bit Mar 2, 2024
583c899
fix upload jsonnet
rahul007-bit Mar 2, 2024
a740d12
Update release-wasm.yml
rahul007-bit Mar 2, 2024
4c63d04
Update dependencies and package version
rahul007-bit Mar 2, 2024
5233b42
Update @arakoodev/edgechains.js version to 0.1.21
rahul007-bit Mar 2, 2024
7737983
create zip for jsonnet
rahul007-bit Mar 3, 2024
65c0465
move jsonnet to JS/jsonnet files
rahul007-bit Mar 3, 2024
c86fab6
Update build process and remove unused code
rahul007-bit Mar 3, 2024
ef87093
Add/update package-lock.json and yarn.lock files
rahul007-bit Mar 3, 2024
8627569
Update @arakoodev/edgechains.js version to 0.1.22
rahul007-bit Mar 3, 2024
f81697b
Update release-wasm.yml: Removed unnecessary command in workflow
rahul007-bit Mar 3, 2024
584699f
Update release-wasm.yml to use thedoctor0/zip-release action
rahul007-bit Mar 3, 2024
fadd0b3
Add Jsonnet file to bin directory
rahul007-bit Mar 3, 2024
eb79403
Automatically applying Prettier changes
actions-user Mar 3, 2024
8efd600
Automatically applying Prettier changes
actions-user Mar 5, 2024
970b65b
Add regex and js-sys dependencies
rahul007-bit Mar 9, 2024
92155c9
Merge branch 'ts' of github.com:arakoodev/EdgeChains into ts
rahul007-bit Mar 9, 2024
f00d3fb
Automatically applying Prettier changes
actions-user Mar 15, 2024
9853e40
Automatically applying Prettier changes
actions-user Mar 27, 2024
7e7e162
Fix ext str (#322)
redoC-A2k Mar 30, 2024
3b69c33
Automatically applying Prettier changes
actions-user Apr 1, 2024
e193400
Automatically applying Prettier changes
actions-user Apr 2, 2024
2a696e3
Native function (#324)
redoC-A2k Apr 3, 2024
9e4f3bb
Fetch (#331)
redoC-A2k Apr 16, 2024
f275ec1
removed older Java files
sandys Apr 16, 2024
25b8433
feat:adding classes and refactor the classes (#325)
Shyam-Raghuwanshi Apr 17, 2024
874e60c
fix pdf uploader (#336)
Shyam-Raghuwanshi Apr 18, 2024
0c811d8
adding chatWithPdf example (#335)
Shyam-Raghuwanshi Apr 18, 2024
efcc173
Update README.md (#339)
Shyam-Raghuwanshi Apr 20, 2024
d98c887
Fix workflow run - "pr-build" (#338)
redoC-A2k Apr 20, 2024
8ef5a60
Automatically applying Prettier changes
actions-user Apr 20, 2024
d4d2c5b
Evaluate file implemented by reading external jsonnet file at runtime…
redoC-A2k Apr 21, 2024
61418ca
Automatically applying Prettier changes
actions-user Apr 21, 2024
fa46b11
cleanup-examples (#344)
Shyam-Raghuwanshi Apr 22, 2024
8206684
moving openai classes from lib to openai (#345)
Shyam-Raghuwanshi Apr 22, 2024
03dcafc
fixes readme file (#347)
Shyam-Raghuwanshi Apr 22, 2024
f7b9a28
Automatically applying Prettier changes
actions-user Apr 22, 2024
d7a7868
Publish jsonnet on npm (#348)
redoC-A2k Apr 22, 2024
d56df6a
Fixes clasess and examples (#349)
Shyam-Raghuwanshi Apr 22, 2024
78e7692
addind latest package (#352)
Shyam-Raghuwanshi Apr 22, 2024
a300904
Update README.md (#351)
Shyam-Raghuwanshi Apr 22, 2024
e7b2d9d
Automatically applying Prettier changes
actions-user Apr 22, 2024
ee358c7
Update readme for webassembly compilation and execution (#354)
redoC-A2k Apr 22, 2024
68fe065
uncomment the Inserttosupabase function (#353)
Shyam-Raghuwanshi Apr 24, 2024
d71c3fb
Automatically applying Prettier changes
actions-user Apr 25, 2024
fa1a61e
Moving sub packages into singal (#355)
Shyam-Raghuwanshi Apr 25, 2024
691c599
Automatically applying Prettier changes
actions-user May 7, 2024
dbd06e6
Add function in jsonnet (#358)
redoC-A2k May 13, 2024
660d918
Automatically applying Prettier changes
actions-user May 13, 2024
0a4e37f
Bump jsonnet version (#360)
redoC-A2k May 13, 2024
7707d20
adding-react-chain-example (#359)
Shyam-Raghuwanshi May 13, 2024
b6d19a9
Automatically applying Prettier changes
actions-user May 13, 2024
f365bff
updating dependencies and some minor bug fixes (#361)
Shyam-Raghuwanshi May 14, 2024
7e1e558
Automatically applying Prettier changes
actions-user May 18, 2024
71e6ece
Automatically applying Prettier changes
actions-user May 22, 2024
c95ec39
adding openai-function-and-web-scrapper (#362)
Shyam-Raghuwanshi May 23, 2024
283caae
Automatically applying Prettier changes
actions-user May 24, 2024
ea4b1e3
Automatically applying Prettier changes
actions-user May 28, 2024
ca4ec1b
updating examples with zod schema function (#364)
Shyam-Raghuwanshi May 29, 2024
41966c4
Migrate to wasm component (#356)
redoC-A2k May 29, 2024
47ff79b
Update README.md
May 29, 2024
f4460c0
Automatically applying Prettier changes
actions-user May 29, 2024
d6bdccb
updating package name and the examples (#365)
Shyam-Raghuwanshi May 29, 2024
c0f4d02
Automatically applying Prettier changes
actions-user May 30, 2024
e53b36e
Move jsonnet to wasm (#366)
redoC-A2k May 30, 2024
010281d
Automatically applying Prettier changes
actions-user May 30, 2024
dbe9070
Fix workflow release file (#367)
redoC-A2k May 31, 2024
c488be8
Fix released artifact execution (#368)
redoC-A2k May 31, 2024
f99f458
bump jsonnet version (#369)
redoC-A2k May 31, 2024
d957a24
Updated jsonnet readme (#370)
redoC-A2k May 31, 2024
37cac8a
Automatically applying Prettier changes
actions-user Jun 1, 2024
f25d7c3
fix env issue (#371)
Shyam-Raghuwanshi Jun 1, 2024
fe1f91b
fixing-exmaples (#372)
Shyam-Raghuwanshi Jun 1, 2024
1859524
Build edgechains and zip it in artifacts in release-wasm workflow (#374)
redoC-A2k Jun 4, 2024
9a65a31
Update package version based on github tag release (#375)
redoC-A2k Jun 4, 2024
4ffa6dd
doing-minor-fixes-for-build (#376)
Shyam-Raghuwanshi Jun 4, 2024
b718d6b
Automatically applying Prettier changes
actions-user Jun 4, 2024
49f26da
updating packages version in examples (#377)
Shyam-Raghuwanshi Jun 5, 2024
c5d309a
Automatically applying Prettier changes
actions-user Jun 5, 2024
2c2e6e6
fixing the zod schema function (#378)
Shyam-Raghuwanshi Jun 5, 2024
9bfdd6d
Automatically applying Prettier changes
actions-user Jun 6, 2024
0e8dc5a
adding resume-reviewer example (#379)
Shyam-Raghuwanshi Jun 8, 2024
89aa39a
Update README.md
Jun 8, 2024
60d2eeb
updating-readme (#380)
Shyam-Raghuwanshi Jun 8, 2024
da61ff9
Automatically applying Prettier changes
actions-user Jun 11, 2024
d5fc4a7
Automatically applying Prettier changes
actions-user Jun 11, 2024
6ba74cf
Reimplement axios ( previous pr was having merge conflicts ) (#382)
redoC-A2k Jun 11, 2024
11b6e60
fixing-resume-reviewer (#383)
Shyam-Raghuwanshi Jun 11, 2024
89611ad
Automatically applying Prettier changes
actions-user Jun 12, 2024
c333085
updating-video-link (#384)
Shyam-Raghuwanshi Jun 12, 2024
e54d632
Update README.md
Jun 13, 2024
c4e9af2
Update README.md
Jun 13, 2024
101b4ad
Update README.md
Jun 13, 2024
fa4eec9
Convert into htmx (#385)
Shyam-Raghuwanshi Jun 13, 2024
0d60314
Added sync-rpc (#381)
redoC-A2k Jun 13, 2024
b2e61da
Automatically applying Prettier changes
actions-user Jun 13, 2024
fea9279
Conditionally use hono nodejs adapter in arakoo server (#386)
redoC-A2k Jun 13, 2024
02e712e
Automatically applying Prettier changes
actions-user Jun 14, 2024
f423daf
Conditionally include sync-rpc (#387)
redoC-A2k Jun 14, 2024
560bc97
Add urlencode in jsonnet and use console panic hook only in nodejs ca…
redoC-A2k Jun 14, 2024
52a6f5a
Automatically applying Prettier changes
actions-user Jun 14, 2024
81c9a01
Make react chain example both nodejs and arakoo runtime compatible wi…
redoC-A2k Jun 14, 2024
647198f
Automatically applying Prettier changes
actions-user Jun 15, 2024
688e4dc
updating-web-scrapper (#390)
Shyam-Raghuwanshi Jun 15, 2024
8a4a9e3
Update README.md
Jun 16, 2024
bbf209b
Automatically applying Prettier changes
actions-user Jun 16, 2024
354c310
Fix hono post handler (#391)
redoC-A2k Jun 16, 2024
9a2ce01
Automatically applying Prettier changes
actions-user Jun 17, 2024
cebafad
adding-research-agent (#392)
Shyam-Raghuwanshi Jun 17, 2024
46af276
Automatically applying Prettier changes
actions-user Jun 18, 2024
1bfa618
Run chat-with-llm in wasm (#394)
redoC-A2k Jun 18, 2024
919e6b0
Update local package to remote package and readme (#393)
redoC-A2k Jun 18, 2024
647597d
Automatically applying Prettier changes
actions-user Jun 18, 2024
9b2ac54
adding video url (#395)
Shyam-Raghuwanshi Jun 19, 2024
6903ea0
Update README.md (#396)
eltociear Jun 19, 2024
cb19ee8
Automatically applying Prettier changes
actions-user Jul 9, 2024
286ab82
adding-testcases (#397)
Shyam-Raghuwanshi Jul 10, 2024
814c491
Automatically applying Prettier changes
actions-user Jul 17, 2024
2a01739
adding playwright and updating examples (#399)
Shyam-Raghuwanshi Jul 19, 2024
279ee3f
Automatically applying Prettier changes
actions-user Jul 19, 2024
b52b9c7
updating-library-version (#400)
Shyam-Raghuwanshi Jul 20, 2024
369d1ab
Automatically applying Prettier changes
actions-user Jul 26, 2024
092be44
updating-playwright-lib (#401)
Shyam-Raghuwanshi Jul 26, 2024
ee42816
Adding rpa example (#402)
Shyam-Raghuwanshi Jul 26, 2024
867e822
Automatically applying Prettier changes
actions-user Jul 27, 2024
a332422
updating-examples-readme (#404)
Shyam-Raghuwanshi Aug 1, 2024
fb14ff7
Automatically applying Prettier changes
actions-user Aug 3, 2024
4f00857
feat/adding-llama-and-gemini-classes (#405)
Shyam-Raghuwanshi Aug 3, 2024
7ba0722
Automatically applying Prettier changes
actions-user Aug 14, 2024
b6974a1
Updating rpa challenge and playwright (#406)
Shyam-Raghuwanshi Aug 14, 2024
86980a7
Automatically applying Prettier changes
actions-user Aug 15, 2024
a3b9ff6
Relicensing to AGPL-3
Aug 15, 2024
b38b345
Create WASM.md
Aug 15, 2024
6df6da1
Update README.md
Aug 15, 2024
0b3b920
Update rpa package.json (#409)
Shyam-Raghuwanshi Aug 15, 2024
9405d62
Update README.md
Aug 20, 2024
cf002d9
fixing-lib (#410)
Shyam-Raghuwanshi Oct 1, 2024
72adb66
Update release-wasm.yml
Oct 1, 2024
a6305ca
Automatically applying Prettier changes
actions-user Oct 1, 2024
4eaa3da
fixing-build-issue (#411)
Shyam-Raghuwanshi Oct 1, 2024
88381eb
Update release-wasm.yml
Oct 1, 2024
d116798
Automatically applying Prettier changes
actions-user Oct 7, 2024
c6527d5
updating-lib (#412)
Shyam-Raghuwanshi Oct 7, 2024
a696493
Automatically applying Prettier changes
actions-user Nov 3, 2024
5b1005f
Adding voice ai (#414)
Shyam-Raghuwanshi Nov 4, 2024
5f5c031
Automatically applying Prettier changes
actions-user Nov 4, 2024
cebe660
fixing-retell (#415)
Shyam-Raghuwanshi Nov 5, 2024
dfbca67
Automatically applying Prettier changes
actions-user Dec 21, 2024
86ad7a3
Update Makefile
Dec 21, 2024
8a90e55
Update Makefile
Dec 21, 2024
04e8c1b
Update Makefile
Dec 21, 2024
b5a87a0
Update Makefile
Dec 21, 2024
2b0bfff
Update rust-toolchain.toml
Dec 21, 2024
538ea8a
Update all.test.js
Dec 21, 2024
754e34d
Update build.rs
Dec 21, 2024
fdacc8f
Update Makefile
Dec 21, 2024
3dd2c69
Automatically applying Prettier changes
actions-user Dec 24, 2024
5d673c0
fixing retell and esbuild issue (#418)
Shyam-Raghuwanshi Dec 25, 2024
67cf2fd
Automatically applying Prettier changes
actions-user Dec 26, 2024
4369eb7
Automatically applying Prettier changes
actions-user Jan 1, 2025
8307fcc
Automatically applying Prettier changes
actions-user Feb 1, 2025
d838d4f
Automatically applying Prettier changes
actions-user Jan 22, 2026
cf56fab
Automatically applying Prettier changes
actions-user Mar 7, 2026
1997293
Automatically applying Prettier changes
actions-user Mar 16, 2026
85a0e82
Automatically applying Prettier changes
actions-user Mar 17, 2026
9d3dafc
Automatically applying Prettier changes
actions-user Apr 7, 2026
9a6588d
Automatically applying Prettier changes
actions-user Apr 10, 2026
0926f34
Automatically applying Prettier changes
actions-user Apr 14, 2026
1e3de45
Automatically applying Prettier changes
actions-user Apr 15, 2026
15af25b
Automatically applying Prettier changes
actions-user Apr 20, 2026
ab9737a
Automatically applying Prettier changes
actions-user May 6, 2026
f5ab584
Automatically applying Prettier changes
actions-user May 11, 2026
3087b8c
Automatically applying Prettier changes
actions-user May 20, 2026
66835f9
Automatically applying Prettier changes
actions-user May 25, 2026
05a132a
Add Palm2 API support
duongynhi000005-oss May 26, 2026
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
  •  
  •  
  •  
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/setup-maven@v4.5
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@^8 &&
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)/.prettierignore" --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: actions@github.com
commit_author: GitHub Actions <actions@github.com>
branch: ts

- 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/setup-maven@v4.5
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