improve resilience against nodejs.org failures (#3758)

This commit is contained in:
Alex Lam S.L
2020-03-30 03:20:13 +01:00
committed by GitHub
parent b5f4e1187f
commit c69c026728
2 changed files with 7 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ jobs:
test: test:
strategy: strategy:
matrix: matrix:
node: [ "0.10", "0.12", 4, 6, 8, 10, latest ] node: [ "0.10", "0.12", "4", "6", "8", "10", latest ]
os: [ ubuntu-latest, windows-latest ] os: [ ubuntu-latest, windows-latest ]
script: [ compress, mocha, release/benchmark, release/jetstream ] script: [ compress, mocha, release/benchmark, release/jetstream ]
name: ${{ matrix.node }} ${{ matrix.os }} ${{ matrix.script }} name: ${{ matrix.node }} ${{ matrix.os }} ${{ matrix.script }}
@@ -21,9 +21,9 @@ jobs:
- name: Perform tests - name: Perform tests
shell: bash shell: bash
run: | run: |
git clone --branch v1.5.3 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
. ~/.nvs/nvs.sh --version . ~/.nvs/nvs.sh --version || . ~/.nvs/nvs.sh --version || . ~/.nvs/nvs.sh --version
nvs add $NODE nvs add $NODE || nvs add $NODE || nvs add $NODE
nvs use $NODE nvs use $NODE
node --version node --version
npm --version --no-update-notifier npm --version --no-update-notifier

View File

@@ -15,9 +15,9 @@ jobs:
- name: Perform fuzzing - name: Perform fuzzing
shell: bash shell: bash
run: | run: |
git clone --branch v1.5.3 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
. ~/.nvs/nvs.sh --version . ~/.nvs/nvs.sh --version || . ~/.nvs/nvs.sh --version || . ~/.nvs/nvs.sh --version
nvs add 10 nvs add 10 || nvs add 10 || nvs add 10
nvs use 10 nvs use 10
node --version node --version
npm --version --no-update-notifier npm --version --no-update-notifier