From f4f850545b3e1428c2fdd03c6060dd85aa1e88d1 Mon Sep 17 00:00:00 2001 From: xlassix Date: Fri, 30 Aug 2024 13:59:41 +0100 Subject: [PATCH] chore: fix workflow --- .github/workflows/node.js.yml | 27 +++++++++++++++++---------- README.md | 2 +- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 76aff4a..f4e23fb 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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 }} @@ -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: | @@ -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 @@ -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 diff --git a/README.md b/README.md index 202e82a..3297d37 100644 --- a/README.md +++ b/README.md @@ -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 ::example_caller::request_data --sender-account --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:' +rooch move run --function ::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:' ```