workaround intermittent nodejs.org corruptions (#3766)
authorAlex Lam S.L <alexlamsl@gmail.com>
Tue, 7 Apr 2020 00:40:38 +0000 (01:40 +0100)
committerGitHub <noreply@github.com>
Tue, 7 Apr 2020 00:40:38 +0000 (08:40 +0800)
.github/workflows/ci.yml
.github/workflows/ufuzz.yml

index a84daf3..6b1d796 100644 (file)
@@ -22,7 +22,7 @@ jobs:
         shell: bash
         run: |
           git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
-          while !(. ~/.nvs/nvs.sh add $NODE); do
+          while ! timeout 60 bash -c '. ~/.nvs/nvs.sh add $NODE && nvs use $NODE'; do
             cd ~/.nvs
             git clean -xdf
             cd -
@@ -35,5 +35,5 @@ jobs:
           npm config set save false
           npm config set update-notifier false
           npm --version
-          while !(npm install); do echo "'npm install' failed - retrying..."; done;
+          while !(npm install); do echo "'npm install' failed - retrying..."; done
           node test/$TYPE
index c2d63a4..7a8c70c 100644 (file)
@@ -16,7 +16,7 @@ jobs:
         shell: bash
         run: |
           git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
-          while !(. ~/.nvs/nvs.sh add 10); do
+          while ! timeout 60 bash -c '. ~/.nvs/nvs.sh add 10 && nvs use 10'; do
             cd ~/.nvs
             git clean -xdf
             cd -
@@ -29,5 +29,5 @@ jobs:
           npm config set save false
           npm config set update-notifier false
           npm --version
-          while !(npm install); do echo "'npm install' failed - retrying..."; done;
+          while !(npm install); do echo "'npm install' failed - retrying..."; done
           node test/ufuzz/job 3600000