node-gyp.yml 1002 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: node-gyp integration
  2. on: [push, pull_request]
  3. jobs:
  4. test:
  5. strategy:
  6. fail-fast: false
  7. matrix:
  8. os: [macos-latest, ubuntu-latest, windows-latest]
  9. python: [3.6, 3.9]
  10. runs-on: ${{ matrix.os }}
  11. steps:
  12. - name: Clone gyp-next
  13. uses: actions/checkout@v2
  14. with:
  15. path: gyp-next
  16. - name: Clone nodejs/node-gyp
  17. uses: actions/checkout@v2
  18. with:
  19. repository: nodejs/node-gyp
  20. path: node-gyp
  21. - uses: actions/setup-node@v2
  22. with:
  23. node-version: 14.x
  24. - uses: actions/setup-python@v2
  25. with:
  26. python-version: ${{ matrix.python }}
  27. - name: Install dependencies
  28. run: |
  29. cd node-gyp
  30. npm install --no-progress
  31. - name: Replace gyp in node-gyp
  32. shell: bash
  33. run: |
  34. rm -rf node-gyp/gyp
  35. cp -r gyp-next node-gyp/gyp
  36. - name: Run tests
  37. run: |
  38. cd node-gyp
  39. npm test