test.yml 685 B

123456789101112131415161718192021222324252627282930
  1. name: Run Tests
  2. on: [push]
  3. env:
  4. PNPM_CACHE_FOLDER: .pnpm-store
  5. HUSKY: 0 # Bypass husky commit hook for CI
  6. jobs:
  7. test:
  8. name: Unit Test
  9. runs-on: ubuntu-20.04
  10. strategy:
  11. matrix:
  12. node-version: [16]
  13. steps:
  14. - name: Checkout
  15. uses: actions/checkout@v3
  16. - name: Setup pnpm
  17. uses: pnpm/action-setup@v2
  18. with:
  19. version: 8
  20. - name: Use Node.js ${{ matrix.node-version }}
  21. uses: actions/setup-node@v3
  22. with:
  23. node-version: ${{ matrix.node-version }}
  24. cache: 'pnpm'
  25. - name: Install dependencies
  26. run: pnpm install
  27. - name: Run Unit Tests
  28. run: pnpm run test