ci.yml 753 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: CI
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. jobs:
  10. lint:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v3
  14. - name: Set node
  15. uses: actions/setup-node@v3
  16. with:
  17. node-version: 18.x
  18. - name: Setup
  19. run: npm i -g @antfu/ni
  20. - name: Install
  21. run: nci
  22. - name: Lint
  23. run: nr lint:fix
  24. typecheck:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - uses: actions/checkout@v3
  28. - name: Set node
  29. uses: actions/setup-node@v3
  30. with:
  31. node-version: 18.x
  32. - name: Setup
  33. run: npm i -g @antfu/ni
  34. - name: Install
  35. run: nci
  36. - name: Typecheck
  37. run: nr type-check