Просмотр исходного кода

ci: run deterministic JavaScript checks on pull requests

Co-authored-by: Cursor <cursoragent@cursor.com>
jamesread 1 день назад
Родитель
Сommit
98b6b9d0d2
1 измененных файлов с 18 добавлено и 0 удалено
  1. 18 0
      .github/workflows/codestyle.yml

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

@@ -5,6 +5,17 @@ on:
   push:
     paths:
       - '.github/workflows/codestyle.yml'
+      - 'Makefile'
+      - 'frontend/**'
+      - 'integration-tests/**'
+      - 'proto/**'
+      - 'service/**'
+  pull_request:
+    branches:
+      - next
+    paths:
+      - '.github/workflows/codestyle.yml'
+      - 'Makefile'
       - 'frontend/**'
       - 'integration-tests/**'
       - 'proto/**'
@@ -35,9 +46,16 @@ jobs:
         uses: actions/setup-node@v4
         with:
           node-version: '22'
+          cache: 'npm'
+          cache-dependency-path: |
+            frontend/package-lock.json
+            integration-tests/package-lock.json
 
       - name: frontend
         run: make -wC frontend codestyle
 
       - name: frontend unit tests
         run: make -wC frontend unittests
+
+      - name: integration tests codestyle
+        run: make -wC integration-tests codestyle