GitHub action: properly separate different steps in jobs
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 1 May 2020 12:45:08 +0000 (14:45 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 1 May 2020 12:45:08 +0000 (14:45 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/lint.yml

index 62dc754fb6f7095c45a161e36b240ade3b9796e5..d488e5fedfa1214a20d23383c9c593cb34a2f1cb 100644 (file)
@@ -4,6 +4,8 @@ on: [pull_request, push]
 
 jobs:
   lint:
+    env:
+      CI: true
 
     runs-on: ubuntu-latest
 
@@ -17,9 +19,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