aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-04-07 01:40:38 +0100
committerGitHub <noreply@github.com>2020-04-07 08:40:38 +0800
commit41eb4f172552e8d20831673ae5019f9e54b37c11 (patch)
tree6d0ff2b313d28122528e4f7c9839fb1b19534ae2
parent94bc22166925031f00d0f7f8beecb0a15a8313bc (diff)
downloadtracifyjs-41eb4f172552e8d20831673ae5019f9e54b37c11.tar.gz
tracifyjs-41eb4f172552e8d20831673ae5019f9e54b37c11.zip
workaround intermittent nodejs.org corruptions (#3766)
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--.github/workflows/ufuzz.yml4
2 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a84daf30..6b1d796c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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
diff --git a/.github/workflows/ufuzz.yml b/.github/workflows/ufuzz.yml
index c2d63a4a..7a8c70c0 100644
--- a/.github/workflows/ufuzz.yml
+++ b/.github/workflows/ufuzz.yml
@@ -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