Add GitHub actions.
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 24 Apr 2020 23:16:36 +0000 (01:16 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 24 Apr 2020 23:16:36 +0000 (01:16 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/greetings.yml [new file with mode: 0644]
.github/workflows/nodejs.yml [new file with mode: 0644]

diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml
new file mode 100644 (file)
index 0000000..d021394
--- /dev/null
@@ -0,0 +1,13 @@
+name: Greetings
+
+on: [pull_request, issues]
+
+jobs:
+  greeting:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/first-interaction@v1
+      with:
+        repo-token: ${{ secrets.GITHUB_TOKEN }}
+        issue-message: 'Welcome to your first issue in e-Mobility software'
+        pr-message: 'Welcome to your first PR in e-Mobility software'
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
new file mode 100644 (file)
index 0000000..1a8f851
--- /dev/null
@@ -0,0 +1,25 @@
+name: Node CI
+
+on: [push]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    strategy:
+      matrix:
+        node-version: [13.x, 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 lint
+      run: |
+        npm ci
+        npm run lint
+      env:
+        CI: true