action.yml 536 B

12345678910111213141516171819202122
  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. run: npm ci
  16. shell: bash
  17. if: steps.cache.outputs.cache-hit != 'true'
  18. - name: Install Foundry
  19. uses: foundry-rs/foundry-toolchain@v1
  20. with:
  21. version: nightly