summaryrefslogtreecommitdiff
path: root/.github/workflows/tests.yml
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2021-01-19 20:28:30 +0000
committerMichael Williamson <mike@zwobble.org>2021-01-19 20:46:27 +0000
commit48156b06b49344898edf8c38a7d6813dfa3d9f56 (patch)
tree2badc652cc452a6fcec1657e2118b496459ef557 /.github/workflows/tests.yml
parentd537494932e014a5984125aadf660543a4e556d3 (diff)
Add GitHub action
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
+
+