Skip to content

chore: fix workflow #41

chore: fix workflow

chore: fix workflow #41

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
env:
RUST_BACKTRACE=1

Check failure on line 17 in .github/workflows/node.js.yml

View workflow run for this annotation

GitHub Actions / Node CI

Invalid workflow file

The workflow is not valid. .github/workflows/node.js.yml (Line: 17, Col: 7): Unexpected value 'RUST_BACKTRACE=1' .github/workflows/node.js.yml (Line: 63, Col: 11): Unexpected value 'RUST_BACKTRACE=1'
# # ROOCH_ORACLE_ADDRESS= ${{ secrets.ROOCH_ORACLE_ADDRESS }}
# # ROOCH_PRIVATE_KEY= ${{ secrets.ROOCH_PRIVATE_KEY }}
strategy:
matrix:
node-version: [20.x]
steps:
# - name: Install latest nightly
# uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly
# override: true
# components: rustfmt, clippy
- name: Download rooch
run: |
wget https://github.com/rooch-network/rooch/releases/latest/download/rooch-ubuntu-latest.zip
echo "Download completed"
- name: Install Rooch
run: |
unzip rooch-ubuntu-latest.zip
sudo cp rooch-artifacts/rooch /usr/local/bin
mkdir .rooch
mkdir .rooch/rooch_config
rooch --version
rooch init
echo "Installation completed"
- name: Use Node.js ${{ matrix.node-version }} 🛎️
uses: actions/checkout@v3
with:
node-version: ${{ matrix.node-version }}
persist-credentials: false
- name: Install 🔧 dependencies
run: npx yarn install
- 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