aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-12-26 09:27:03 +0000
committerGitHub <noreply@github.com>2020-12-26 17:27:03 +0800
commitdd6d7b3d88072bebdd21fedc10abd6e04ff7d094 (patch)
tree1042e41518522f2b375c33a56da54f00a4e7c0e4
parent94f3819dc6267f6e2efefdffc4b02e92a8e8a5d9 (diff)
downloadtracifyjs-dd6d7b3d88072bebdd21fedc10abd6e04ff7d094.tar.gz
tracifyjs-dd6d7b3d88072bebdd21fedc10abd6e04ff7d094.zip
workaround `schedule` delays on GitHub Actions (#4463)
-rw-r--r--.github/workflows/ci.yml8
-rw-r--r--.github/workflows/ufuzz.yml29
2 files changed, 27 insertions, 10 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1408b4b3..2cc18d88 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,13 +7,13 @@ jobs:
test:
strategy:
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 ]
script: [ compress, mocha, release/benchmark, release/jetstream ]
exclude:
- - node: "0.8"
+ - node: '0.8'
script: release/benchmark
- - node: "0.8"
+ - node: '0.8'
script: release/jetstream
name: ${{ matrix.node }} ${{ matrix.os }} ${{ matrix.script }}
runs-on: ${{ matrix.os }}
@@ -29,7 +29,7 @@ jobs:
- name: Perform tests
shell: bash
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
cd ~/.nvs
while !(git clean -xdf); do echo "'git clean' failed - retrying..."; done
diff --git a/.github/workflows/ufuzz.yml b/.github/workflows/ufuzz.yml
index ea37f5dd..48a3ba6c 100644
--- a/.github/workflows/ufuzz.yml
+++ b/.github/workflows/ufuzz.yml
@@ -2,7 +2,7 @@ name: Fuzzing
on:
pull_request:
schedule:
- - cron: "*/5 * * * *"
+ - cron: '*/5 * * * *'
env:
BASE_URL: https://api.github.com/repos/${{ github.repository }}
CAUSE: ${{ github.event_name }}
@@ -13,22 +13,39 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ ubuntu-latest, windows-latest ]
- name: ${{ matrix.os }}
+ include:
+ - 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 }}
+ env:
+ NODE: ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
+ - name: Install GNU Core Utilities
+ if: ${{ startsWith(matrix.os, 'macos') }}
+ shell: bash
+ run: |
+ brew install coreutils
- name: Perform fuzzing
shell: bash
run: |
- git clone --branch v1.5.4 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
- while ! timeout 60 bash -c '. ~/.nvs/nvs.sh add 8 && nvs use 8'; do
+ 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
cd ~/.nvs
while !(git clean -xdf); do echo "'git clean' failed - retrying..."; done
cd -
done
. ~/.nvs/nvs.sh --version
- nvs use 8
+ nvs use $NODE
node --version
npm config set audit false
npm config set optional false