GitHub actions: env CI variable is already set to true by default.
[e-mobility-charging-stations-simulator.git] / .github / workflows / lint.yml
index 62dc754fb6f7095c45a161e36b240ade3b9796e5..d664a1f3fa9bedc06eb5533325ff686463869690 100644 (file)
@@ -1,10 +1,15 @@
 name: Lint CI
 
-on: [pull_request, push]
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+    branches:
+      - master
 
 jobs:
   lint:
-
     runs-on: ubuntu-latest
 
     strategy:
@@ -17,9 +22,7 @@ jobs:
       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
+    - name: npm install
+      run: npm ci
+    - name: npm run lint
+      run: npm run lint