ci.yaml 853 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: ci
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. branches:
  8. - master
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. strategy:
  13. matrix:
  14. node-version: [18, 20, 22]
  15. steps:
  16. - uses: actions/checkout@v4
  17. - name: Use Node.js ${{ matrix.node-version }}
  18. uses: actions/setup-node@v4
  19. with:
  20. node-version: ${{ matrix.node-version }}
  21. - run: npm ci
  22. - name: Test
  23. run: npm test
  24. build-alpine:
  25. runs-on: ubuntu-latest
  26. strategy:
  27. matrix:
  28. node-version: [18, 20, 22]
  29. container:
  30. image: node:${{ matrix.node-version }}-alpine
  31. steps:
  32. - uses: actions/checkout@v4
  33. - name: Install dependencies
  34. run: |
  35. apk add make g++ python3
  36. - run: npm ci
  37. - name: Test
  38. run: |
  39. npm test --unsafe-perm