test.yml 806 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: Test
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. jobs:
  10. build:
  11. runs-on: ${{ matrix.os }}
  12. timeout-minutes: 10
  13. strategy:
  14. matrix:
  15. node_version: [14.x, 16.x]
  16. os: [ubuntu-latest, windows-latest]
  17. fail-fast: false
  18. steps:
  19. - uses: actions/checkout@v3
  20. - uses: pnpm/action-setup@v2
  21. - name: Set node version to ${{ matrix.node_version }}
  22. uses: actions/setup-node@v3
  23. with:
  24. node-version: ${{ matrix.node_version }}
  25. cache: pnpm
  26. - name: Install
  27. run: pnpm i
  28. - name: Build
  29. run: pnpm run build
  30. - name: Test
  31. run: pnpm run test
  32. - name: Lint
  33. run: pnpm run lint
  34. - name: TypeCheck
  35. run: pnpm run typecheck