|
1 | | -name: Sharing Smart Contract - Build and test |
| 1 | +name: Sharing Smart Contract - Reusable |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | workflow_call: |
@@ -94,33 +94,33 @@ jobs: |
94 | 94 | shell: bash |
95 | 95 | run: npm run upgrade-local-fork -- --network local-bellecour-fork |
96 | 96 |
|
97 | | - # # TODO check why the CI does not fail when the following error occurs |
98 | | - # # (when the RPC node is not available): |
99 | | - # # 1) Uncaught error outside test suite |
100 | | - # - name: Hardhat tests |
101 | | - # working-directory: packages/sharing-smart-contract |
102 | | - # shell: bash |
103 | | - # run: npm run test -- --network local-bellecour-fork |
104 | | - |
105 | | - # - name: Test deployment script |
106 | | - # working-directory: packages/sharing-smart-contract |
107 | | - # shell: bash |
108 | | - # run: | |
109 | | - # POCO_ADDRESS=0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f \ |
110 | | - # DATASET_REGISTRY_ADDRESS=0x799DAa22654128d0C64d5b79eac9283008158730 \ |
111 | | - # npm run deploy -- --network local-bellecour-fork |
112 | | - |
113 | | - # - name: Set Directory Permissions |
114 | | - # working-directory: packages/sharing-smart-contract |
115 | | - # shell: bash |
116 | | - # run: sudo chmod -R 777 . |
117 | | - |
118 | | - # - name: Forge Tests |
119 | | - # working-directory: packages/sharing-smart-contract |
120 | | - # shell: bash |
121 | | - # run: forge test --no-match-test "invariant" -vvvv |
122 | | - |
123 | | - # - name: Upload SARIF file |
124 | | - # uses: github/codeql-action/upload-sarif@v3 |
125 | | - # with: |
126 | | - # sarif_file: ${{ steps.slither.outputs.sarif }} |
| 97 | + # TODO check why the CI does not fail when the following error occurs |
| 98 | + # (when the RPC node is not available): |
| 99 | + # 1) Uncaught error outside test suite |
| 100 | + - name: Hardhat tests |
| 101 | + working-directory: packages/sharing-smart-contract |
| 102 | + shell: bash |
| 103 | + run: npm run test -- --network local-bellecour-fork |
| 104 | + |
| 105 | + - name: Test deployment script |
| 106 | + working-directory: packages/sharing-smart-contract |
| 107 | + shell: bash |
| 108 | + run: | |
| 109 | + POCO_ADDRESS=0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f \ |
| 110 | + DATASET_REGISTRY_ADDRESS=0x799DAa22654128d0C64d5b79eac9283008158730 \ |
| 111 | + npm run deploy -- --network local-bellecour-fork |
| 112 | +
|
| 113 | + - name: Set Directory Permissions |
| 114 | + working-directory: packages/sharing-smart-contract |
| 115 | + shell: bash |
| 116 | + run: sudo chmod -R 777 . |
| 117 | + |
| 118 | + - name: Forge Tests |
| 119 | + working-directory: packages/sharing-smart-contract |
| 120 | + shell: bash |
| 121 | + run: forge test --no-match-test "invariant" -vvvv |
| 122 | + |
| 123 | + - name: Upload SARIF file |
| 124 | + uses: github/codeql-action/upload-sarif@v3 |
| 125 | + with: |
| 126 | + sarif_file: ${{ steps.slither.outputs.sarif }} |
0 commit comments