aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-08-06 19:15:51 +0100
committerGitHub <noreply@github.com>2020-08-07 02:15:51 +0800
commit84d5dffd9f54368dc5fda3bfd668d26f42b5b432 (patch)
treed90ed8b707772759b76e4936e14bdc3e79da4bde /.github
parenta8e286f7e1edcdf9b42b057319963c6ed3c47348 (diff)
downloadtracifyjs-84d5dffd9f54368dc5fda3bfd668d26f42b5b432.tar.gz
tracifyjs-84d5dffd9f54368dc5fda3bfd668d26f42b5b432.zip
tweak GitHub Actions (#4042)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--.github/workflows/ufuzz.yml9
2 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a434aac7..1408b4b3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,7 +22,7 @@ jobs:
TYPE: ${{ matrix.script }}
steps:
- uses: actions/checkout@v2
- - uses: actions/cache@v1
+ - uses: actions/cache@v2
with:
path: tmp
key: tmp ${{ matrix.script }}
diff --git a/.github/workflows/ufuzz.yml b/.github/workflows/ufuzz.yml
index 12a47919..88c4092b 100644
--- a/.github/workflows/ufuzz.yml
+++ b/.github/workflows/ufuzz.yml
@@ -2,7 +2,10 @@ name: Fuzzing
on:
pull_request:
schedule:
- - cron: "0,8,15,23,30,38,45,53 * * * *"
+ - cron: "*/5 * * * *"
+env:
+ CAUSE: ${{ github.event_name }}
+ DATA_URL: https://api.github.com/repos/${{ github.repository }}/actions/workflows/ufuzz.yml/runs?status=queued
jobs:
ufuzz:
strategy:
@@ -16,6 +19,10 @@ jobs:
- name: Perform fuzzing
shell: bash
run: |
+ if [[ $CAUSE == "schedule" ]] && (( `curl -s $DATA_URL | tr -d '\040\011\012\015' | awk -F"queued" '{print NF-1}'` > 3 )); then
+ echo "too many jobs in queue - exiting..."
+ exit
+ fi
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
cd ~/.nvs