summaryrefslogtreecommitdiff
path: root/.github/workflows/tests.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/tests.yml')
-rw-r--r--.github/workflows/tests.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..c5b1663
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,32 @@
+name: Tests
+
+on: [push, pull_request]
+
+jobs:
+ js:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [6.x, 8.x, 10.x, 12.x]
+
+ defaults:
+ run:
+ working-directory: ./js
+
+ steps:
+
+ - uses: actions/checkout@v2
+
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+
+ - run: npm install -g npm@latest
+
+ - run: npm install
+
+ - run: npm test
+
+