ci.yml 589 B

12345678910111213141516171819202122232425262728293031323334
  1. name: ci
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - main
  7. jobs:
  8. ci:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
  12. - run: corepack enable
  13. - uses: actions/setup-node@v3
  14. with:
  15. node-version: 16
  16. cache: 'pnpm'
  17. - name: Install dependencies
  18. run: pnpm i
  19. - name: Run linters
  20. run: pnpm lint
  21. - name: Run unit test
  22. run: pnpm test
  23. - name: Type check
  24. run: pnpm typecheck
  25. - name: Build the app
  26. run: pnpm build