ci.yml 1.1 KB

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