ci.yml 797 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: CI
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. concurrency:
  10. group: ${{ github.workflow }}-${{ github.ref }}
  11. cancel-in-progress: true
  12. jobs:
  13. ci:
  14. name: Lint, Type Check & Build
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Checkout repository
  18. uses: actions/checkout@v4
  19. - name: Install pnpm
  20. uses: pnpm/action-setup@v4
  21. - name: Setup Node.js
  22. uses: actions/setup-node@v4
  23. with:
  24. node-version: 20
  25. cache: "pnpm"
  26. - name: Install dependencies
  27. run: pnpm install --frozen-lockfile
  28. - name: Lint
  29. run: pnpm lint
  30. - name: Type check
  31. run: pnpm type-check
  32. - name: Test
  33. run: pnpm test
  34. - name: Build
  35. run: pnpm build