aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml27
1 files changed, 27 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