Manav Rathi 1 년 전
부모
커밋
a599ddbfc1
3개의 변경된 파일26개의 추가작업 그리고 14개의 파일을 삭제
  1. 10 6
      .github/workflows/auth-lint.yml
  2. 10 6
      .github/workflows/mobile-lint.yml
  3. 6 2
      .github/workflows/web-lint.yml

+ 10 - 6
.github/workflows/auth-lint.yml

@@ -6,8 +6,8 @@ on:
         paths:
             # - But only if something changes inside auth
             - "auth/**"
-            # - Or if the there is some change in GitHub workflows themselves
-            - ".github/workflows/**"
+            # - Or if the there is some change in workflow itself
+            - ".github/workflows/auth-lint.yml"
 
 jobs:
     lint:
@@ -16,16 +16,20 @@ jobs:
             run:
                 working-directory: auth
         steps:
+            # Checkout our code, including submodules
+            - uses: actions/checkout@v4
+              with:
+                  submodules: recursive
+
             # Install Flutter
             - uses: subosito/flutter-action@v2
               with:
                   channel: "stable"
                   flutter-version: "3.13.4"
-            # Checkout our code, including submodules
-            - uses: actions/checkout@v4
-              with:
-                  submodules: recursive
+                  cache: true
+
             # Install dependencies
             - run: flutter pub get
+
             # Lint
             - run: flutter analyze --no-fatal-infos

+ 10 - 6
.github/workflows/mobile-lint.yml

@@ -6,8 +6,8 @@ on:
         paths:
             # - But only if something changes inside mobile
             - "mobile/**"
-            # - Or if the there is some change in GitHub workflows themselves
-            - ".github/workflows/**"
+            # - Or if the there is some change in workflow itself
+            - ".github/workflows/mobile-lint.yml"
 
 jobs:
     lint:
@@ -16,16 +16,20 @@ jobs:
             run:
                 working-directory: mobile
         steps:
+            # Checkout our code, including submodules
+            - uses: actions/checkout@v4
+              with:
+                  submodules: recursive
+
             # Install Flutter
             - uses: subosito/flutter-action@v2
               with:
                   channel: "stable"
                   flutter-version: "3.13.4"
-            # Checkout our code, including submodules
-            - uses: actions/checkout@v4
-              with:
-                  submodules: recursive
+                  cache: true
+
             # Install dependencies
             - run: flutter pub get
+
             # Lint
             - run: flutter analyze --no-fatal-infos

+ 6 - 2
.github/workflows/web-lint.yml

@@ -6,8 +6,8 @@ on:
         paths:
             # - But only if something changes inside web
             - "web/**"
-            # - Or if the there is some change in GitHub workflows themselves
-            - ".github/workflows/**"
+            # - Or if the there is some change in workflow itself
+            - ".github/workflows/mobile-lint.yml"
 
 jobs:
     lint:
@@ -17,5 +17,9 @@ jobs:
                 working-directory: web
         steps:
             - uses: actions/checkout@v4
+            - uses: actions/setup-node@v4
+              with:
+                  node-version: 20
+                  cache: true
             - run: yarn install
             - run: yarn lint