Selaa lähdekoodia

Create JS-ESLint.yml

Shlee 1 viikko sitten
vanhempi
commit
87ea1f823e
1 muutettua tiedostoa jossa 31 lisäystä ja 0 poistoa
  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