|
1 | 1 | name: Tests
|
2 | 2 | on:
|
3 |
| - pull_request: |
4 |
| - push: |
5 |
| - branches: [main] |
| 3 | + pull_request: |
| 4 | + push: |
| 5 | + branches: [main] |
6 | 6 |
|
7 | 7 | jobs:
|
8 |
| - test-node: |
9 |
| - name: testing |
10 |
| - runs-on: token-studio-linux-large |
11 |
| - env: |
12 |
| - NODE_OPTIONS: "--max-old-space-size=32768" |
13 |
| - CLIENT_PRIVATE_KEY_ECDSA_1: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_1 }} |
14 |
| - CLIENT_PUBLIC_KEY_ECDSA_1: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_1 }} |
15 |
| - CLIENT_ACCOUNT_ID_ECDSA_1: "0.0.1328" |
16 |
| - CLIENT_EVM_ADDRESS_ECDSA_1_CORRECT: "0x97C50bb12E1C6284cF2855cdba95c5D60AEE44CF" |
17 |
| - CLIENT_EVM_ADDRESS_ECDSA_1: "0x0000000000000000000000000000000000000530" |
18 |
| - CLIENT_PRIVATE_KEY_ECDSA_2: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_2 }} |
19 |
| - CLIENT_PUBLIC_KEY_ECDSA_2: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }} |
20 |
| - CLIENT_ACCOUNT_ID_ECDSA_2: "0.0.2168740" |
21 |
| - CLIENT_EVM_ADDRESS_ECDSA_2: "0x00000000000000000000000000000000002117A4" |
22 |
| - FACTORY_ADDRESS: "0.0.5480051" |
23 |
| - RESOLVER_ADDRESS: "0.0.5479997" |
24 |
| - FIREBLOCKS_HEDERA_ACCOUNT_ID: "0.0.2168740" |
25 |
| - FIREBLOCKS_HEDERA_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }} |
26 |
| - DFNS_HEDERA_ACCOUNT_ID: "0.0.2168740" |
27 |
| - DFNS_WALLET_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }} |
28 |
| - AWS_KMS_HEDERA_ACCOUNT_ID: "0.0.4394946" |
29 |
| - AWS_KMS_HEDERA_PUBLIC_KEY: "302d300706052b8104000a03220003ee815bb9b5e53f5dbe7264a77e586127dfcb75da8c1246f5aa6ededdb13e6c21" |
30 |
| - REACT_APP_MIRROR_NODE: "https://testnet.mirrornode.hedera.com/api/v1/" |
31 |
| - REACT_APP_RPC_NODE: "https://testnet.hashio.io/api" |
32 |
| - REACT_APP_RPC_RESOLVER: "0.0.5479997" |
33 |
| - REACT_APP_RPC_FACTORY: "0.0.5480051" |
34 |
| - REACT_APP_SHOW_DISCLAIMER: "true" |
35 |
| - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
36 |
| - permissions: |
37 |
| - contents: read |
| 8 | + test-node: |
| 9 | + name: testing |
| 10 | + runs-on: token-studio-linux-large |
| 11 | + env: |
| 12 | + NODE_OPTIONS: '--max-old-space-size=32768' |
| 13 | + CONTRACT_SIZER_RUN_ON_COMPILE: 'false' |
| 14 | + REPORT_GAS: 'false' |
| 15 | + CLIENT_PRIVATE_KEY_ECDSA_1: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_1 }} |
| 16 | + CLIENT_PUBLIC_KEY_ECDSA_1: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_1 }} |
| 17 | + CLIENT_ACCOUNT_ID_ECDSA_1: '0.0.1328' |
| 18 | + CLIENT_EVM_ADDRESS_ECDSA_1_CORRECT: '0x97C50bb12E1C6284cF2855cdba95c5D60AEE44CF' |
| 19 | + CLIENT_EVM_ADDRESS_ECDSA_1: '0x0000000000000000000000000000000000000530' |
| 20 | + CLIENT_PRIVATE_KEY_ECDSA_2: ${{ secrets.CLIENT_PRIVATE_KEY_ECDSA_2 }} |
| 21 | + CLIENT_PUBLIC_KEY_ECDSA_2: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }} |
| 22 | + CLIENT_ACCOUNT_ID_ECDSA_2: '0.0.2168740' |
| 23 | + CLIENT_EVM_ADDRESS_ECDSA_2: '0x00000000000000000000000000000000002117A4' |
| 24 | + FACTORY_ADDRESS: '0.0.5480051' |
| 25 | + RESOLVER_ADDRESS: '0.0.5479997' |
| 26 | + FIREBLOCKS_HEDERA_ACCOUNT_ID: '0.0.2168740' |
| 27 | + FIREBLOCKS_HEDERA_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }} |
| 28 | + DFNS_HEDERA_ACCOUNT_ID: '0.0.2168740' |
| 29 | + DFNS_WALLET_PUBLIC_KEY: ${{ secrets.CLIENT_PUBLIC_KEY_ECDSA_2 }} |
| 30 | + AWS_KMS_HEDERA_ACCOUNT_ID: '0.0.4394946' |
| 31 | + AWS_KMS_HEDERA_PUBLIC_KEY: '302d300706052b8104000a03220003ee815bb9b5e53f5dbe7264a77e586127dfcb75da8c1246f5aa6ededdb13e6c21' |
| 32 | + REACT_APP_MIRROR_NODE: 'https://testnet.mirrornode.hedera.com/api/v1/' |
| 33 | + REACT_APP_RPC_NODE: 'https://testnet.hashio.io/api' |
| 34 | + REACT_APP_RPC_RESOLVER: '0.0.5479997' |
| 35 | + REACT_APP_RPC_FACTORY: '0.0.5480051' |
| 36 | + REACT_APP_SHOW_DISCLAIMER: 'true' |
| 37 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 38 | + permissions: |
| 39 | + contents: read |
38 | 40 |
|
39 |
| - steps: |
40 |
| - - name: Harden Runner |
41 |
| - uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1 |
42 |
| - with: |
43 |
| - egress-policy: audit |
| 41 | + steps: |
| 42 | + - name: Harden Runner |
| 43 | + uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1 |
| 44 | + with: |
| 45 | + egress-policy: audit |
44 | 46 |
|
45 |
| - - name: Checkout repository |
46 |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 47 | + - name: Checkout repository |
| 48 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
47 | 49 |
|
48 |
| - - name: Setup NodeJS Environment |
49 |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 |
50 |
| - with: |
51 |
| - node-version: 20.x |
| 50 | + - name: Setup NodeJS Environment |
| 51 | + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 |
| 52 | + with: |
| 53 | + node-version: 20.x |
52 | 54 |
|
53 |
| - - name: Install dependencies Contracts |
54 |
| - working-directory: contracts |
55 |
| - run: | |
56 |
| - npm ci |
57 |
| - npm run compile:force |
| 55 | + - name: Install dependencies Contracts |
| 56 | + working-directory: contracts |
| 57 | + run: | |
| 58 | + npm ci |
| 59 | + npm run compile:force |
58 | 60 |
|
59 |
| - - name: Test Contracts |
60 |
| - working-directory: contracts |
61 |
| - run: npm run test |
| 61 | + - name: Test Contracts |
| 62 | + working-directory: contracts |
| 63 | + run: npm run test |
62 | 64 |
|
63 |
| - - name: Install dependencies SDK |
64 |
| - working-directory: sdk |
65 |
| - run: | |
66 |
| - npm ci |
67 |
| - npm run build |
| 65 | + - name: Install dependencies SDK |
| 66 | + working-directory: sdk |
| 67 | + run: | |
| 68 | + npm ci |
| 69 | + npm run build |
68 | 70 |
|
69 |
| - - name: Install Yarn |
70 |
| - run: npm install -g yarn@1.22.22 |
| 71 | + - name: Install Yarn |
| 72 | + run: npm install -g yarn@1.22.22 |
71 | 73 |
|
72 |
| - # # No tests for UI components yet |
73 |
| - # - name: Install dependencies UI Components |
74 |
| - # working-directory: uiComponents |
75 |
| - # run: yarn install |
| 74 | + # # No tests for UI components yet |
| 75 | + # - name: Install dependencies UI Components |
| 76 | + # working-directory: uiComponents |
| 77 | + # run: yarn install |
76 | 78 |
|
77 |
| - - name: Install dependencies web |
78 |
| - working-directory: web |
79 |
| - run: yarn install |
| 79 | + - name: Install dependencies web |
| 80 | + working-directory: web |
| 81 | + run: yarn install |
80 | 82 |
|
81 |
| - - name: Build web |
82 |
| - working-directory: web |
83 |
| - run: yarn build |
| 83 | + - name: Build web |
| 84 | + working-directory: web |
| 85 | + run: yarn build |
84 | 86 |
|
85 |
| - - name: Test web |
86 |
| - working-directory: web |
87 |
| - run: npm run test |
| 87 | + - name: Test web |
| 88 | + working-directory: web |
| 89 | + run: npm run test |
88 | 90 |
|
89 |
| - - name: Test sdk |
90 |
| - working-directory: sdk |
91 |
| - run: npm run test |
| 91 | + - name: Test sdk |
| 92 | + working-directory: sdk |
| 93 | + run: npm run test |
92 | 94 |
|
93 |
| - # # No tests for UI components yet |
94 |
| - # - name: Test UI Components |
95 |
| - # working-directory: uiComponents |
96 |
| - # run: ${{ steps.cgroup.outputs.exec }} npm run test |
| 95 | + # # No tests for UI components yet |
| 96 | + # - name: Test UI Components |
| 97 | + # working-directory: uiComponents |
| 98 | + # run: ${{ steps.cgroup.outputs.exec }} npm run test |
97 | 99 |
|
98 |
| - - name: Upload coverage report |
99 |
| - if: ${{ !cancelled() && always() }} |
100 |
| - uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 |
| 100 | + - name: Upload coverage report |
| 101 | + if: ${{ !cancelled() && always() }} |
| 102 | + uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 |
0 commit comments