Add GitHub CI action.
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 8 Nov 2020 16:02:40 +0000 (17:02 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 8 Nov 2020 16:02:40 +0000 (17:02 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/build.yml [new file with mode: 0644]

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644 (file)
index 0000000..d42c3e0
--- /dev/null
@@ -0,0 +1,24 @@
+name: Build CI
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+    branches:
+      - master
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        node-version: [14.x]
+    steps:
+    - uses: actions/checkout@v2
+    - name: Use Node.js ${{ matrix.node-version }}
+      uses: actions/setup-node@v1
+      with:
+        node-version: ${{ matrix.node-version }}
+    - name: npm install
+      run: npm ci
+    - name: npm run build:prod
+      run: npm run build:prod