Skip to content

Test/kyc impacted methods #812

Test/kyc impacted methods

Test/kyc impacted methods #812

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches: [main]
jobs:
test-node:
name: testing
runs-on: token-studio-linux-large
env:
NODE_OPTIONS: "--max-old-space-size=32768"
CLIENT_PRIVATE_KEY_ECDSA_1: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_1 }}
CLIENT_PUBLIC_KEY_ECDSA_1: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_1 }}
CLIENT_ACCOUNT_ID_ECDSA_1: "0.0.1328"
CLIENT_EVM_ADDRESS_ECDSA_1_CORRECT: "0x97C50bb12E1C6284cF2855cdba95c5D60AEE44CF"
CLIENT_EVM_ADDRESS_ECDSA_1: "0x0000000000000000000000000000000000000530"
CLIENT_PRIVATE_KEY_ECDSA_2: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_2 }}
CLIENT_PUBLIC_KEY_ECDSA_2: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
CLIENT_ACCOUNT_ID_ECDSA_2: "0.0.2168740"
CLIENT_EVM_ADDRESS_ECDSA_2: "0x00000000000000000000000000000000002117A4"
FACTORY_ADDRESS: "0.0.5480051"
RESOLVER_ADDRESS: "0.0.5479997"
FIREBLOCKS_HEDERA_ACCOUNT_ID: "0.0.2168740"
FIREBLOCKS_HEDERA_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
DFNS_HEDERA_ACCOUNT_ID: "0.0.2168740"
DFNS_WALLET_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }}
AWS_KMS_HEDERA_ACCOUNT_ID: "0.0.4394946"
AWS_KMS_HEDERA_PUBLIC_KEY: "302d300706052b8104000a03220003ee815bb9b5e53f5dbe7264a77e586127dfcb75da8c1246f5aa6ededdb13e6c21"
REACT_APP_MIRROR_NODE: "https://testnet.mirrornode.hedera.com/api/v1/"
REACT_APP_RPC_NODE: "https://testnet.hashio.io/api"
REACT_APP_RPC_RESOLVER: "0.0.5479997"
REACT_APP_RPC_FACTORY: "0.0.5480051"
REACT_APP_SHOW_DISCLAIMER: "true"
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
permissions:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup NodeJS Environment
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 18.x
- name: Install dependencies Contracts
working-directory: contracts
run: |
npm ci
npm run compile:force
- name: Test Contracts
working-directory: contracts
run: npm run test
- name: Install dependencies SDK
working-directory: sdk
run: |
npm ci
npm run build
- name: Install Yarn
run: npm install -g [email protected]
# # No tests for UI components yet
# - name: Install dependencies UI Components
# working-directory: uiComponents
# run: yarn install
- name: Install dependencies web
working-directory: web
run: yarn install
- name: Build web
working-directory: web
run: yarn build
- name: Test web
working-directory: web
run: npm run test
- name: Test sdk
working-directory: sdk
run: npm run test
# # No tests for UI components yet
# - name: Test UI Components
# working-directory: uiComponents
# run: ${{ steps.cgroup.outputs.exec }} npm run test
- name: Upload coverage report
if: ${{ !cancelled() && always() }}
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673