summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authors1n <[email protected]>2020-04-15 03:25:36 -0700
committerGitHub <[email protected]>2020-04-15 03:25:36 -0700
commita7c51d1342376a88e71fb54d9594e7bdfd378f58 (patch)
treee75428eb8954cff0a9477a7a15f1b3b9c4e7e58f
parentadd test and build, v5.0.1 (diff)
downloaddep-core-a7c51d1342376a88e71fb54d9594e7bdfd378f58.tar.xz
dep-core-a7c51d1342376a88e71fb54d9594e7bdfd378f58.zip
create node action
-rw-r--r--.github/workflows/nodejs.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
new file mode 100644
index 0000000..4390e93
--- /dev/null
+++ b/.github/workflows/nodejs.yml
@@ -0,0 +1,31 @@
+# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
+# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
+
+name: Node.js CI
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [10.x, 12.x]
+
+ 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 ci
+ - run: npm run build --if-present
+ - run: npm test
+ env:
+ CI: true