action.yml 651 B

1234567891011121314151617181920212223
  1. name: Setup
  2. description: Common environment setup
  3. runs:
  4. using: composite
  5. steps:
  6. - uses: actions/setup-node@v4
  7. with:
  8. node-version: 20.x
  9. - uses: actions/cache@v4
  10. id: cache
  11. with:
  12. path: '**/node_modules'
  13. key: npm-v3-${{ hashFiles('**/package-lock.json') }}
  14. - name: Install dependencies
  15. ## TODO: Remove when EIP-7702 authorizations are enabled in latest non-beta ethers version
  16. run: npm ci --legacy-peer-deps
  17. shell: bash
  18. if: steps.cache.outputs.cache-hit != 'true'
  19. - name: Install Foundry
  20. uses: foundry-rs/foundry-toolchain@v1
  21. with:
  22. version: stable