You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dp...@apache.org on 2019/08/14 04:34:37 UTC

[cordova-common] 02/04: Try my eslint plugin

This is an automated email from the ASF dual-hosted git repository.

dpogue pushed a commit to branch ci-workflow
in repository https://gitbox.apache.org/repos/asf/cordova-common.git

commit 5dbd731f02e4b04482b28cf5fd3f2f5292c65b07
Author: Darryl Pogue <da...@dpogue.ca>
AuthorDate: Tue Aug 13 00:06:15 2019 -0700

    Try my eslint plugin
---
 .github/workflows/main.yml | 29 ++++++++++++++++++++++++-----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d32e645..7e08144 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -9,6 +9,25 @@ on:
     - '*'
 
 jobs:
+  lint:
+    name: 'ESLint'
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v1
+
+      - name: Use Node.js 10
+        uses: actions/setup-node@v1
+        with:
+          version: 10
+
+      - name: npm install
+        run: npm install
+
+      - name: eslint
+        uses: dpogue/eslint-check-action@dev
+        with:
+          repo-token: ${{ secrets.GITHUB_TOKEN }}
+
   test:
     name: NodeJS ${{ matrix.node_version }} on ${{ matrix.os }}
     runs-on: ${{ matrix.os }}
@@ -25,8 +44,8 @@ jobs:
         with:
           version: ${{ matrix.node_version }}
 
-      - name: npm install and test
-        run: |
-          npm install
-          npm test
-          npm run cover
+      - name: npm install
+        run: npm install
+
+      - name: npm test
+        run: npm test


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org