浏览代码

gh action

- update eslint
- add jest
Alexander Rose 3 年之前
父节点
当前提交
687a814a62
共有 2 个文件被更改,包括 17 次插入18 次删除
  1. 0 18
      .github/workflows/lint.yml
  2. 17 0
      .github/workflows/node.yml

+ 0 - 18
.github/workflows/lint.yml

@@ -1,18 +0,0 @@
-on:
-  push:
-  pull_request:
-
-jobs:
-  eslint:
-    name: eslint
-    runs-on: ubuntu-latest
-    steps:
-    - uses: actions/checkout@v1
-    - name: install node v14
-      uses: actions/setup-node@v1
-      with:
-        node-version: 14
-    - name: yarn install
-      run: yarn install
-    - name: eslint
-      uses: icrawl/action-eslint@v1

+ 17 - 0
.github/workflows/node.yml

@@ -0,0 +1,17 @@
+on:
+  push:
+  pull_request:
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - uses: actions/setup-node@v2
+      with:
+        node-version: 14
+    - run: yarn install
+    - name: ESLint
+      uses: sibiraj-s/action-eslint@v2.0.0
+    - name: Jest Annotations & Coverage
+      uses: mattallty/jest-github-action@v1.0.3