Skip to content

Commit

Permalink
chore: fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xlassix committed Aug 30, 2024
1 parent 1ac7e6f commit f4f8505
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
# env:
env:
RUST_BACKTRACE=1
# # ROOCH_ORACLE_ADDRESS= ${{ secrets.ROOCH_ORACLE_ADDRESS }}
# # ROOCH_PRIVATE_KEY= ${{ secrets.ROOCH_PRIVATE_KEY }}

Expand All @@ -22,12 +23,12 @@ jobs:
node-version: [20.x]

steps:
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
# - name: Install latest nightly
# uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly
# override: true
# components: rustfmt, clippy

- name: Download rooch
run: |
Expand All @@ -38,12 +39,12 @@ jobs:
run: |
unzip rooch-ubuntu-latest.zip
sudo cp rooch-artifacts/rooch /usr/local/bin
mkdir .rooch
mkdir .rooch/rooch_config
rooch --version
rooch init --config-dir ./rooch --skip-password
rooch init
echo "Installation completed"
- name: Run rooch test
run: rooch move test -p rooch --config-dir ./rooch

- name: Use Node.js ${{ matrix.node-version }} 🛎️
uses: actions/checkout@v3
Expand All @@ -57,5 +58,11 @@ jobs:
- name: build
run: npx yarn build

- name: Run rooch test
env:
RUST_BACKTRACE=1
run: |
rooch init --config-dir ./rooch --skip-password
rooch move test -p ./rooch --config-dir ./rooch --json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ pnpm dev
Finally, send a new request transaction to have it indexed. Make sure to replace placeholders with actual values relevant to your setup.

```bash
rooch move run --function <contractAddress>::example_caller::request_data --sender-account <Orchestrator Address> --args 'string:https://api.x.com/2/users/by/username/elonmusk?user.fields=public_metrics' --args 'string:GET' --args 'string:{}' --args 'string:{}' --args 'string:.data.public_metrics.followers_count' --args 'address:<Orchestrator Address>'
rooch move run --function <contractAddress>::example_caller::request_data --sender-account default --args 'string:https://api.x.com/2/users/by/username/elonmusk?user.fields=public_metrics' --args 'string:GET' --args 'string:{}' --args 'string:{}' --args 'string:.data.public_metrics.followers_count' --args 'address:<Orchestrator Address>'
```

0 comments on commit f4f8505

Please sign in to comment.