test.yml 844 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Test
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - release-v*
  7. pull_request: {}
  8. workflow_dispatch: {}
  9. jobs:
  10. test:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - uses: actions/setup-node@v2
  15. with:
  16. node-version: 12.x
  17. - uses: actions/cache@v2
  18. id: cache
  19. with:
  20. path: '**/node_modules'
  21. key: npm-v2-${{ hashFiles('**/package-lock.json') }}
  22. restore-keys: npm-v2-
  23. - run: npm ci
  24. if: steps.cache.outputs.cache-hit != 'true'
  25. - run: bash scripts/upgradeable/transpile.sh
  26. if: github.event_name == 'pull_request'
  27. - run: npm run test
  28. env:
  29. FORCE_COLOR: 1
  30. ENABLE_GAS_REPORT: true
  31. - run: npm run test:inheritance
  32. - name: Print gas report
  33. run: cat gas-report.txt