workaround schedule delays on GitHub Actions (#4463)

This commit is contained in:
Alex Lam S.L
2020-12-26 09:27:03 +00:00
committed by GitHub
parent 94f3819dc6
commit dd6d7b3d88
2 changed files with 27 additions and 10 deletions

View File

@@ -7,13 +7,13 @@ jobs:
test: test:
strategy: strategy:
matrix: matrix:
node: [ "0.8", "0.10", "0.12", "4", "6", "8", "10", "12", latest ] node: [ '0.8', '0.10', '0.12', '4', '6', '8', '10', '12', 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 ]
exclude: exclude:
- node: "0.8" - node: '0.8'
script: release/benchmark script: release/benchmark
- node: "0.8" - node: '0.8'
script: release/jetstream script: release/jetstream
name: ${{ matrix.node }} ${{ matrix.os }} ${{ matrix.script }} name: ${{ matrix.node }} ${{ matrix.os }} ${{ matrix.script }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@@ -29,7 +29,7 @@ jobs:
- name: Perform tests - name: Perform tests
shell: bash shell: bash
run: | run: |
git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs git clone --branch v1.6.0 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
while ! timeout 60 bash -c '. ~/.nvs/nvs.sh add $NODE && nvs use $NODE'; do while ! timeout 60 bash -c '. ~/.nvs/nvs.sh add $NODE && nvs use $NODE'; do
cd ~/.nvs cd ~/.nvs
while !(git clean -xdf); do echo "'git clean' failed - retrying..."; done while !(git clean -xdf); do echo "'git clean' failed - retrying..."; done

View File

@@ -2,7 +2,7 @@ name: Fuzzing
on: on:
pull_request: pull_request:
schedule: schedule:
- cron: "*/5 * * * *" - cron: '*/5 * * * *'
env: env:
BASE_URL: https://api.github.com/repos/${{ github.repository }} BASE_URL: https://api.github.com/repos/${{ github.repository }}
CAUSE: ${{ github.event_name }} CAUSE: ${{ github.event_name }}
@@ -13,22 +13,39 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ ubuntu-latest, windows-latest ] include:
name: ${{ matrix.os }} - node: latest
os: macos-latest
- node: '8'
os: ubuntu-latest
- node: '8'
os: ubuntu-latest
- node: '8'
os: windows-latest
- node: '8'
os: windows-latest
name: ${{ matrix.node }} ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env:
NODE: ${{ matrix.node }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install GNU Core Utilities
if: ${{ startsWith(matrix.os, 'macos') }}
shell: bash
run: |
brew install coreutils
- name: Perform fuzzing - name: Perform fuzzing
shell: bash shell: bash
run: | run: |
git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs git clone --branch v1.6.0 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
while ! timeout 60 bash -c '. ~/.nvs/nvs.sh add 8 && nvs use 8'; do while ! timeout 60 bash -c '. ~/.nvs/nvs.sh add $NODE && nvs use $NODE'; do
cd ~/.nvs cd ~/.nvs
while !(git clean -xdf); do echo "'git clean' failed - retrying..."; done while !(git clean -xdf); do echo "'git clean' failed - retrying..."; done
cd - cd -
done done
. ~/.nvs/nvs.sh --version . ~/.nvs/nvs.sh --version
nvs use 8 nvs use $NODE
node --version node --version
npm config set audit false npm config set audit false
npm config set optional false npm config set optional false