diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-10-21 04:11:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 04:11:14 +0800 |
commit | 5bd0cf8633d32a4b71be5654a04e353d3f86324e (patch) | |
tree | aca30200c02bc1525abbdfeeb090fbb909695ac5 /.github | |
parent | 9199ab584667357122637df49eb96919b0a04eb8 (diff) | |
download | tracifyjs-5bd0cf8633d32a4b71be5654a04e353d3f86324e.tar.gz tracifyjs-5bd0cf8633d32a4b71be5654a04e353d3f86324e.zip |
enable GitHub Actions (#3503)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 27 | ||||
-rw-r--r-- | .github/workflows/ufuzz.yml | 24 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..229f2dd9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI +on: [ push, pull_request ] +jobs: + test: + strategy: + matrix: + os: [ ubuntu-latest, windows-latest ] + node: [ "0.10", 0.12, 4, 6, 8, 10, latest ] + script: [ compress, mocha, release/benchmark, release/jetstream ] + name: ${{ matrix.os }} ${{ matrix.node }} ${{ matrix.script }} + runs-on: ${{ matrix.os }} + env: + NODE: ${{ matrix.node }} + TYPE: ${{ matrix.script }} + steps: + - uses: actions/checkout@v1 + - shell: bash + run: | + git clone --branch v1.5.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs + . ~/.nvs/nvs.sh + nvs --version + nvs add node/$NODE + nvs use node/$NODE + node --version + npm --version --no-update-notifier + npm install --no-audit --no-optional --no-save --no-update-notifier + node test/$TYPE diff --git a/.github/workflows/ufuzz.yml b/.github/workflows/ufuzz.yml new file mode 100644 index 00000000..9153a1ec --- /dev/null +++ b/.github/workflows/ufuzz.yml @@ -0,0 +1,24 @@ +name: Fuzzing +on: + schedule: + - cron: "*/15 * * * *" +jobs: + ufuzz: + strategy: + matrix: + os: [ ubuntu-latest, windows-latest ] + name: ${{ matrix.os }} + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v1 + - shell: bash + run: | + git clone --branch v1.5.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs + . ~/.nvs/nvs.sh + nvs --version + nvs add node/$NODE + nvs use node/$NODE + node --version + npm --version --no-update-notifier + npm install --no-audit --no-optional --no-save --no-update-notifier + node test/ufuzz/job 3600000 |