ci.yml 540 B

123456789101112131415161718192021222324252627282930
  1. name: CI
  2. on:
  3. push:
  4. branches: [master, main]
  5. pull_request:
  6. branches: [master, main]
  7. jobs:
  8. build-and-test:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. node-version: [20, 22]
  13. steps:
  14. - uses: actions/checkout@v4
  15. - uses: pnpm/action-setup@v4
  16. with:
  17. version: 9
  18. - uses: actions/setup-node@v4
  19. with:
  20. node-version: ${{ matrix.node-version }}
  21. cache: pnpm
  22. - run: pnpm install --frozen-lockfile
  23. - run: pnpm build
  24. - run: pnpm test