chore(deps): bump the npm_and_yarn group across 2 directories with 8 … #184
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 | |
| on: [push] | |
| concurrency: | |
| group: ${{github.workflow}}-${{github.ref}} | |
| cancel-in-progress: true | |
| env: | |
| MAINNET_RPC: ${{ secrets.MAINNET_RPC }} | |
| SEPOLIA_RPC: ${{ secrets.SEPOLIA_RPC }} | |
| jobs: | |
| unit-tests: | |
| name: Run Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: stable | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: yarn --frozen-lockfile --network-concurrency 1 | |
| - name: Precompile | |
| run: yarn build | |
| - name: Run tests | |
| shell: bash | |
| run: yarn test:unit | |
| integration-tests: | |
| name: Run Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: stable | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: yarn --frozen-lockfile --network-concurrency 1 | |
| - name: Precompile | |
| run: yarn build | |
| - name: Run tests | |
| run: yarn test:integration | |
| populate-script-tests: | |
| name: Run Populate Script Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: stable | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: yarn --frozen-lockfile | |
| - name: Precompile | |
| run: yarn build | |
| - name: Install dependencies (populate-script) | |
| working-directory: populate-script | |
| run: yarn --frozen-lockfile | |
| - name: Run tests (populate-script) | |
| working-directory: populate-script | |
| run: yarn test | |
| # medusa-tests: | |
| # name: Medusa Test | |
| # runs-on: ubuntu-latest | |
| # container: ghcr.io/trailofbits/eth-security-toolbox/ci:nightly-20241223 | |
| # steps: | |
| # - name: Checkout repository | |
| # uses: actions/checkout@v4 | |
| # with: | |
| # submodules: recursive | |
| # - name: Install dependencies | |
| # run: yarn --frozen-lockfile --network-concurrency 1 | |
| # - name: Run Medusa | |
| # run: medusa fuzz --test-limit 200000 | |
| # halmos-tests: | |
| # name: Run symbolic execution tests | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: Install Foundry | |
| # uses: foundry-rs/foundry-toolchain@v1 | |
| # with: | |
| # version: stable | |
| # - name: Use Node.js | |
| # uses: actions/setup-node@v4 | |
| # with: | |
| # node-version: 20.x | |
| # cache: 'yarn' | |
| # - name: Install dependencies | |
| # run: yarn --frozen-lockfile --network-concurrency 1 | |
| # - name: Precompile | |
| # run: yarn build | |
| # - name: Run tests | |
| # run: yarn test:integration | |
| lint: | |
| name: Static Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: wagoid/commitlint-github-action@v5 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: stable | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| cache: "yarn" | |
| - name: Install dependencies | |
| run: yarn --frozen-lockfile --network-concurrency 1 | |
| - name: Run Forge formatter and Solhint | |
| run: yarn lint:check | |
| - name: Install and run Bulloak | |
| uses: smol-ninja/bulloak-toolchain@v1 | |
| with: | |
| test-dir: "test/unit" |