ci.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: "CI"
  2. env:
  3. DOTENV_CONFIG_PATH: "./.env.example"
  4. on:
  5. pull_request:
  6. branches:
  7. - "main"
  8. push:
  9. branches:
  10. - "main"
  11. jobs:
  12. ci:
  13. runs-on: "ubuntu-latest"
  14. steps:
  15. - name: "Check out the repo"
  16. uses: "actions/checkout@v3"
  17. - name: "Install Node.js"
  18. uses: "actions/setup-node@v3"
  19. with:
  20. cache: "yarn"
  21. node-version: "lts/*"
  22. - name: "Install the dependencies"
  23. run: "yarn install --immutable"
  24. - name: "Lint the code"
  25. run: "yarn lint"
  26. - name: "Add lint summary"
  27. run: |
  28. echo "## Lint results" >> $GITHUB_STEP_SUMMARY
  29. echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
  30. - name: "Compile the contracts and generate the TypeChain bindings"
  31. run: "yarn typechain"
  32. - name: "Test the contracts and generate the coverage report"
  33. run: "yarn coverage"
  34. - name: "Add test summary"
  35. run: |
  36. echo "## Test results" >> $GITHUB_STEP_SUMMARY
  37. echo "✅ Passed" >> $GITHUB_STEP_SUMMARY