tests.yml 687 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Node.js CI
  2. on:
  3. push:
  4. branches: [main, staging, "release/**"]
  5. pull_request:
  6. branches: [main, staging, "release/**"]
  7. jobs:
  8. test:
  9. name: Test
  10. runs-on: ubuntu-latest
  11. strategy:
  12. matrix:
  13. node-version: ["lts/*"]
  14. steps:
  15. - name: Checkout
  16. uses: actions/checkout@v4
  17. - name: Setup environment
  18. run: mv .env.example .env
  19. - name: Setup node
  20. uses: actions/setup-node@v4
  21. with:
  22. node-version: ${{ matrix.node-version }}
  23. - name: Setup pnpm
  24. uses: pnpm/action-setup@v3
  25. with:
  26. version: 8
  27. run_install: true
  28. - name: Run tests
  29. run: pnpm test