feat(sharing)!: Remove result proxy address from sharing contract config and matched deal #55
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI Sharing Smart Contract | |
| on: | |
| pull_request: | |
| branches: | |
| - '*' | |
| paths: | |
| - 'packages/sharing-smart-contract/**' | |
| concurrency: | |
| group: ${{ github.ref }}-sharing-smart-contract-tests | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Install Dependencies | |
| working-directory: packages/sharing-smart-contract | |
| run: | | |
| node -v | |
| npm -v | |
| npm ci | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: stable | |
| cache: true | |
| - name: Compile | |
| working-directory: packages/sharing-smart-contract | |
| run: npm run compile | |
| - name: Check Format | |
| working-directory: packages/sharing-smart-contract | |
| run: npm run check-format | |
| - name: Lint | |
| working-directory: packages/sharing-smart-contract | |
| run: npm run lint | |
| - name: UML Diagrams | |
| working-directory: packages/sharing-smart-contract | |
| run: npm run uml | |
| - name: Static Analyzer | |
| uses: crytic/[email protected] | |
| id: slither | |
| with: | |
| sarif: result.sarif | |
| fail-on: none | |
| target: 'packages/sharing-smart-contract/' | |
| # TODO check why the CI does not fail when the following error occurs: | |
| # 1) Uncaught error outside test suite | |
| - name: Hardhat Tests | |
| working-directory: packages/sharing-smart-contract | |
| run: npm run test # runs on local forked hardhat network | |
| - name: Upgrade Test | |
| working-directory: packages/sharing-smart-contract | |
| run: npm run upgrade-local-fork | |
| - name: Set Directory Permissions | |
| working-directory: packages/sharing-smart-contract | |
| run: sudo chmod -R 777 . | |
| - name: Forge Tests | |
| working-directory: packages/sharing-smart-contract | |
| run: forge test --no-match-test "invariant" -vvvv | |
| - name: Upload SARIF file | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: ${{ steps.slither.outputs.sarif }} |