refactor: addressing audit 8 and 9 #96
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: Workflow | |
| concurrency: | |
| cancel-in-progress: true | |
| group: ${{github.workflow}}-${{github.ref}} | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| continue-on-error: False | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository and submodules | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| # Install Python | |
| - name: Install Python | |
| uses: actions/setup-python@v4 | |
| - name: Install and configure Poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| version: 2.1.4 | |
| virtualenvs-create: true | |
| installer-parallel: true | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| # Install modules | |
| - name: Install modules | |
| run: make install | |
| - name: Run formatting | |
| run: make fmt | |
| # Run linters | |
| - name: Run ESLint | |
| run: ./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx | |
| - name: Run solhint | |
| run: make lint | |
| # Compile the code and run tests | |
| - name: Compile the code | |
| run: make build | |
| - name: Run Forge tests | |
| run: make tests | |
| - name: Run Hardhat tests | |
| run: make tests-hardhat | |
| # - name: Check For changes | |
| # id: changes | |
| # run: | | |
| # git diff --exit-code | |
| # Run hardhat coverage and upload codecov report | |
| #- name: Solidity coverage summary | |
| # run: export NODE_OPTIONS="--max-old-space-size=8192" && forge coverage |