ci.yml 793 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. with:
  22. version: 9.0.0
  23. - name: Setup Node.js
  24. uses: actions/setup-node@v4
  25. with:
  26. node-version: 20
  27. cache: "pnpm"
  28. - name: Install dependencies
  29. run: pnpm install --frozen-lockfile
  30. - name: Lint
  31. run: pnpm lint
  32. - name: Type check
  33. run: pnpm type-check
  34. - name: Build
  35. run: pnpm build