Skip to content

IMA-JS 2.0.1 Beta version #437

IMA-JS 2.0.1 Beta version

IMA-JS 2.0.1 Beta version #437

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test_ima_js:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
env:
MAINNET_ENDPOINT: http://127.0.0.1:8545
SCHAIN_ENDPOINT: http://127.0.0.1:15000
SDK_PRIVATE_KEY: ${{ secrets.SDK_PRIVATE_KEY }}
SDK_ADDRESS: ${{ secrets.SDK_ADDRESS }}
SDK_VERSION: 0.3.1-develop.24
TEST_PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }}
TEST_ADDRESS: ${{ secrets.TEST_ADDRESS }}
SKALED_LOG_LEVEL: info
CHAIN_NAME_SCHAIN: "Bob"
INSTALL_PACKAGES: "True"
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Update submodules
run: |
git submodule update --remote
- name: Install dependencies
run: |
yarn install --production=false
- name: Lint code
run: |
yarn global add tslint typescript
yarn lint
- name: Run ima-sdk
run: |
NO_NGINX=True WAIT=True sudo -E bash skale-ima-sdk/scripts/run_sdk.sh
- name: Deploy test tokens
run: |
sudo -E yarn deploy-tokens
- name: Run tests
run: |
sudo -E yarn test