@@ -253,7 +253,7 @@ jobs:
253253
254254 - name : Build TypeScript
255255 run : yarn build:lib
256-
256+
257257 - name : Extract Prebuilt Binaries
258258 uses : actions/download-artifact@v4
259259 with :
@@ -271,8 +271,8 @@ jobs:
271271 retention-days : 90
272272 path : ${{ github.workspace }}/*.tgz
273273
274- job_test :
275- name : Test (v${{ matrix.node }}) ${{ matrix.os }}
274+ job_test_bindings :
275+ name : Test Bindings (v${{ matrix.node }}) ${{ matrix.os }}
276276 needs : [job_build]
277277 runs-on : ${{ matrix.os }}
278278 strategy :
@@ -302,11 +302,55 @@ jobs:
302302 with :
303303 name : ${{ github.sha }}
304304 - name : Run tests
305- run : yarn test
305+ run : yarn test:bindings
306+
307+ job_test_electron :
308+ name : Test Electron ${{ matrix.os }}
309+ needs : [job_build]
310+ runs-on : ${{ matrix.os }}
311+ strategy :
312+ fail-fast : false
313+ matrix :
314+ os : [macos-latest, windows-latest]
315+ steps :
316+ - name : Check out current commit
317+ uses : actions/checkout@v4
318+ - name : Set up Node
319+ uses : actions/setup-node@v4
320+ with :
321+ node-version-file : ' package.json'
322+ - name : Install dependencies
323+ run : yarn install --ignore-engines --ignore-scripts --frozen-lockfile
324+ - name : Download Tarball
325+ uses : actions/download-artifact@v4
326+ with :
327+ name : ${{ github.sha }}
328+ - name : Run tests
329+ run : yarn test:electron
330+
331+ job_test_bundling :
332+ name : Test Bundling
333+ needs : [job_build]
334+ runs-on : ubuntu-latest
335+ steps :
336+ - name : Check out current commit
337+ uses : actions/checkout@v4
338+ - name : Set up Node
339+ uses : actions/setup-node@v4
340+ with :
341+ node-version-file : ' package.json'
342+ - name : Install dependencies
343+ run : yarn install --ignore-engines --ignore-scripts --frozen-lockfile
344+ - name : Download Tarball
345+ uses : actions/download-artifact@v4
346+ with :
347+ name : ${{ github.sha }}
348+ - name : Run tests
349+ run : yarn test:bundling
306350
307351 job_required_jobs_passed :
308352 name : All required jobs passed
309- needs : [job_test, job_lint ]
353+ needs : [job_lint, job_test_bindings, job_test_electron, job_test_bundling ]
310354 # Always run this, even if a dependent job failed
311355 if : always()
312356 runs-on : ubuntu-latest
0 commit comments