1
0
Эх сурвалжийг харах

Optimize CI workflow by eliminating redundant setup steps (#31383)

- Combine lint, unit, circular dependencies, and examples tests into single job
- Reduce redundant checkout, Node setup, and npm install steps
- Maintain all existing functionality and test coverage
- Keep E2E testing separate due to Windows matrix strategy
- Results in faster execution and better resource efficiency
SOUHAILA SERBOUT 6 сар өмнө
parent
commit
d9a24afcdf
1 өөрчлөгдсөн 5 нэмэгдсэн , 47 устгасан
  1. 5 47
      .github/workflows/ci.yml

+ 5 - 47
.github/workflows/ci.yml

@@ -11,8 +11,8 @@ permissions:
   contents: read
 
 jobs:
-  lint:
-    name: Lint testing
+  test:
+    name: Lint, Unit, Circular dependencies & Examples testing
     runs-on: ubuntu-latest
     steps:
       - name: Git checkout
@@ -28,40 +28,15 @@ jobs:
       - name: === Lint testing ===
         run: npm run lint
 
-  unit:
-    name: Unit testing
-    runs-on: ubuntu-latest
-    steps:
-      - name: Git checkout
-        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
-      - name: Install Node
-        uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
-        with:
-          node-version: 18
-          cache: 'npm'
-      - name: Install dependencies
-        run: npm ci
-
       - name: === Unit testing ===
         run: npm run test-unit
 
-  circular:
-    name: Circular dependencies testing
-    runs-on: ubuntu-latest
-    steps:
-      - name: Git checkout
-        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
-      - name: Install Node
-        uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
-        with:
-          node-version: 18
-          cache: 'npm'
-      - name: Install dependencies
-        run: npm ci
-
       - name: === Circular dependencies testing ===
         run: npm run test-circular-deps
 
+      - name: === Examples ready for release ===
+        run: npm run test-e2e-cov
+
   e2e:
     name: E2E testing
     runs-on: ${{ matrix.os }}
@@ -95,20 +70,3 @@ jobs:
           name: Output screenshots-${{ matrix.os }}-${{ matrix.CI }}
           path: test/e2e/output-screenshots
           if-no-files-found: ignore
-
-  e2e-cov:
-    name: Examples ready for release
-    runs-on: ubuntu-latest
-    steps:
-      - name: Git checkout
-        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
-      - name: Install Node
-        uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
-        with:
-          node-version: 18
-          cache: 'npm'
-      - name: Install dependencies
-        run: npm ci
-
-      - name: === Examples ready for release ===
-        run: npm run test-e2e-cov

粤ICP备19079148号