Add forgotten GitHub action file.
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 25 Apr 2020 00:15:34 +0000 (02:15 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 25 Apr 2020 00:15:34 +0000 (02:15 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/lint.yml [new file with mode: 0644]

diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644 (file)
index 0000000..79ab01b
--- /dev/null
@@ -0,0 +1,25 @@
+name: Lint CI
+
+on: [pull_request, push]
+
+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 and run lint
+      run: |
+        npm ci
+        npm run lint
+      env:
+        CI: true