node-gyp.yml 957 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. runs-on: ${{ matrix.os }}
  10. steps:
  11. - name: Clone gyp-next
  12. uses: actions/checkout@v2
  13. with:
  14. path: gyp-next
  15. - name: Clone nodejs/node-gyp
  16. uses: actions/checkout@v2
  17. with:
  18. repository: nodejs/node-gyp
  19. path: node-gyp
  20. - uses: actions/setup-node@v1
  21. with:
  22. node-version: 14.x
  23. - uses: actions/setup-python@v2
  24. with:
  25. python-version: 3.9
  26. - name: Install dependencies
  27. run: |
  28. cd node-gyp
  29. npm install --no-progress
  30. - name: Replace gyp in node-gyp
  31. shell: bash
  32. run: |
  33. rm -rf node-gyp/gyp
  34. cp -r gyp-next node-gyp/gyp
  35. - name: Run tests
  36. run: |
  37. cd node-gyp
  38. npm test