瀏覽代碼

Create JS-ESLint.yml

Shlee 1 周之前
父節點
當前提交
87ea1f823e
共有 1 個文件被更改,包括 31 次插入0 次删除
  1. 31 0
      .github/workflows/JS-ESLint.yml

+ 31 - 0
.github/workflows/JS-ESLint.yml

@@ -0,0 +1,31 @@
+name: JS - ESLint
+
+on:
+  push:
+    branches:
+      - dev
+      - staging
+  pull_request:
+    branches:
+      - dev
+      - staging
+
+jobs:
+  ESLint:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+
+      - name: Setup Node
+        uses: actions/setup-node@v4
+        with:
+          node-version: '24'
+
+      - name: Install Node dependencies
+        run: npm ci
+
+      - name: Run ESLint
+        run: npm run lint:check
+
+#      - name: Commit linted files
+#        uses: stefanzweifel/git-auto-commit-action@v5