ソースを参照

ci: run deterministic JavaScript checks on pull requests

Co-authored-by: Cursor <cursoragent@cursor.com>
jamesread 2 日 前
コミット
98b6b9d0d2
1 ファイル変更18 行追加0 行削除
  1. 18 0
      .github/workflows/codestyle.yml

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

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