Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Update sui.js to 0.49.1 #197

Update sui.js to 0.49.1

Update sui.js to 0.49.1 #197

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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
print-environment-variables:
runs-on: ubuntu-latest
steps:
- name: Dump Environment Variables
env:
ADMIN_ADDRESS: ${{vars.ADMIN_ADDRESS}}
ADMIN_SECRET_KEY: ${{ secrets.ADMIN_SECRET_KEY }}
TEST_USER_SECRET: ${{ secrets.TEST_USER_SECRET }}
TEST_USER_ADDRESS: ${{ vars.TEST_USER_ADDRESS }}
NFT_APP_PACKAGE_ID: ${{ vars.NFT_APP_PACKAGE_ID }}
NFT_APP_ADMIN_CAP: ${{ vars.NFT_APP_ADMIN_CAP }}
SUI_NODE: ${{ vars.SUI_NODE }}
GET_WORKER_TIMEOUT_MS: ${{ vars.GET_WORKER_TIMEOUT_MS }}
run: echo "SUI_NODE=$SUI_NODE | GET_WORKER_TIMEOUT_MS=$GET_WORKER_TIMEOUT_MS | NFT_APP_PACKAGE_ID=$NFT_APP_PACKAGE_ID | NFT_APP_ADMIN_CAP=$NFT_APP_ADMIN_CAP | TEST_USER_ADDRESS=$TEST_USER_ADDRESS | ADMIN_ADDRESS=$ADMIN_ADDRESS "
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
node-version: [18.x, 20.x, 21.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Running tests with Node.js ver ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- uses: pnpm/action-setup@v2
with:
version: 8
- run: npm ci
- run: npm run build --if-present
- run: npm run lint
- run: npm run test
env:
ADMIN_ADDRESS: ${{vars.ADMIN_ADDRESS}}
ADMIN_SECRET_KEY: ${{ secrets.ADMIN_SECRET_KEY }}
TEST_USER_SECRET: ${{ secrets.TEST_USER_SECRET }}
TEST_USER_ADDRESS: ${{ vars.TEST_USER_ADDRESS }}
NFT_APP_PACKAGE_ID: ${{ vars.NFT_APP_PACKAGE_ID }}
NFT_APP_ADMIN_CAP: ${{ vars.NFT_APP_ADMIN_CAP }}
SUI_NODE: ${{ vars.SUI_NODE }}
GET_WORKER_TIMEOUT_MS: ${{ vars.GET_WORKER_TIMEOUT_MS }}