]> git.bitcoin.ninja Git - ldk-java/commitdiff
[TS] spawn second HTTP server for release run, killing previous one
authorMatt Corallo <git@bluematt.me>
Mon, 17 Jan 2022 16:13:57 +0000 (16:13 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 17 Jan 2022 21:07:13 +0000 (21:07 +0000)
.github/workflows/build.yml

index a7cd7bbd2c5a2e2fd98220b3c89532280c0101e8..74b9bc5b907f4db9bd98fcee1f1243f75bf62709 100644 (file)
@@ -74,7 +74,9 @@ jobs:
           cd ts
           rm liblightningjs.wasm && ln -s $(pwd)/../liblightningjs_debug.wasm ./liblightningjs.wasm
           python3 -m http.server &
+          SERVER_PID=$!
           node test/browser.mjs
+          kill $SERVER_PID
       - name: Build and Test TS Release Bindings for Web
         run: |
           export HOME=/root/ # Github actions is apparently broken
@@ -82,7 +84,10 @@ jobs:
           ./genbindings.sh ./ldk-c-bindings/ wasm false true
           cd ts
           rm liblightningjs.wasm && ln -s $(pwd)/../liblightningjs_release.wasm ./liblightningjs.wasm
+          python3 -m http.server &
+          SERVER_PID=$!
           node test/browser.mjs
+          kill $SERVER_PID
       - name: Check latest TS files are in git
         run: |
           git diff --exit-code