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