]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(ci): improve workflows (#15037)
authorLuke Nelson <luke@nelson.zone>
Thu, 16 Jul 2026 00:21:06 +0000 (01:21 +0100)
committerGitHub <noreply@github.com>
Thu, 16 Jul 2026 00:21:06 +0000 (08:21 +0800)
.github/workflows/autofix.yml
.github/workflows/ci.yml
.github/workflows/close-cant-reproduce-issues.yml
.github/workflows/ecosystem-ci-trigger.yml
.github/workflows/lock-closed-issues.yml
.github/workflows/release.yml
.github/workflows/size-data.yml
.github/workflows/size-report.yml
.github/workflows/test.yml

index 15def5f60d54ecc8e35a754356f3568869ca3bfa..beb5549085902e73259aad9468e7e1b1630dd989 100644 (file)
@@ -2,6 +2,11 @@ name: autofix.ci
 
 on:
   pull_request:
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
 permissions:
   contents: read
 
@@ -12,6 +17,8 @@ jobs:
       PUPPETEER_SKIP_DOWNLOAD: 'true'
     steps:
       - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+        with:
+          persist-credentials: false
 
       - name: Install pnpm
         uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
index 9ed749b726d38c57aa8d59983f187068272f1779..37cbcea3ce76fc778a26cfec33a7942300881cc6 100644 (file)
@@ -10,6 +10,10 @@ on:
       - main
       - minor
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
 permissions:
   contents: read
 
@@ -24,6 +28,8 @@ jobs:
     steps:
       - name: Checkout
         uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+        with:
+          persist-credentials: false
 
       - name: Install pnpm
         uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
index 594e3d5dfba0c2438a5d42fd465306012777ca2a..18653e6a1ebfd05b3b652e9925f86ab3fb65be84 100644 (file)
@@ -10,7 +10,7 @@ permissions:
 jobs:
   close-issues:
     if: github.repository == 'vuejs/core'
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-slim
     steps:
       - name: can't reproduce
         uses: actions-cool/issues-helper@200c78641dbf33838311e5a1e0c31bbdb92d7cf0 # v3.0.0
index df2161bd1f832beab5358870779e61469e6a3ab1..70feed1463aeb1a2fa7987773d8a7e7d34dbef9a 100644 (file)
@@ -11,7 +11,7 @@ permissions:
 
 jobs:
   trigger:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-slim
     if: github.repository == 'vuejs/core' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run')
     steps:
       - name: Check user permission
index 204b1e842aa9b595139f46e88389d39b8bac9f07..3334cfe67d4f44ab159abf808145b8a35b2b1945 100644 (file)
@@ -10,7 +10,7 @@ permissions:
 jobs:
   action:
     if: github.repository == 'vuejs/core'
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-slim
     steps:
       - uses: dessant/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # v6.0.2
         with:
index 45e879f49a3bf5f160723afdb3ff37ca9a85f0b4..3a1bc44ad07659af1a25e1f88d93941e13787e04 100644 (file)
@@ -22,6 +22,8 @@ jobs:
     steps:
       - name: Checkout
         uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+        with:
+          persist-credentials: false
 
       - name: Install pnpm
         uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
index dbdccdff44b2443860df80ef3192a73051fc6ee9..09c58aa8b7e20c7c2dc2a41d4048f55ab6f85757 100644 (file)
@@ -10,6 +10,10 @@ on:
       - main
       - minor
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
 permissions:
   contents: read
 
@@ -23,6 +27,8 @@ jobs:
 
     steps:
       - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+        with:
+          persist-credentials: false
 
       - name: Install pnpm
         uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
index eebe450580d1ab97ce31406fb65790aff84d7ad7..21bf6c8dc0a014d5f1d0b6f06587d72b578f6bdf 100644 (file)
@@ -16,13 +16,15 @@ env:
 
 jobs:
   size-report:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-slim
     if: >
       github.repository == 'vuejs/core' &&
       github.event.workflow_run.event == 'pull_request' &&
       github.event.workflow_run.conclusion == 'success'
     steps:
       - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+        with:
+          persist-credentials: false
 
       - name: Install pnpm
         uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
@@ -43,17 +45,18 @@ jobs:
           run_id: ${{ github.event.workflow_run.id }}
           path: temp/size
 
-      - name: Read PR Number
-        id: pr-number
-        uses: juliangruber/read-file-action@271ff311a4947af354c6abcd696a306553b9ec18 # v1.1.8
-        with:
-          path: temp/size/number.txt
+      - parallel:
+          - name: Read PR Number
+            id: pr-number
+            uses: juliangruber/read-file-action@271ff311a4947af354c6abcd696a306553b9ec18 # v1.1.8
+            with:
+              path: temp/size/number.txt
 
-      - name: Read base branch
-        id: pr-base
-        uses: juliangruber/read-file-action@271ff311a4947af354c6abcd696a306553b9ec18 # v1.1.8
-        with:
-          path: temp/size/base.txt
+          - name: Read base branch
+            id: pr-base
+            uses: juliangruber/read-file-action@271ff311a4947af354c6abcd696a306553b9ec18 # v1.1.8
+            with:
+              path: temp/size/base.txt
 
       - name: Download Previous Size Data
         uses: dawidd6/action-download-artifact@b6e2e70617bc3265edd6dab6c906732b2f1ae151 # v21
index 3827abcafac3ef3ac15e5f3ba1fa9daaf02fbefc..ab8067f78cb844d013dff6a007e200284ef4b08d 100644 (file)
@@ -12,6 +12,8 @@ jobs:
       PUPPETEER_SKIP_DOWNLOAD: 'true'
     steps:
       - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+        with:
+          persist-credentials: false
 
       - name: Install pnpm
         uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
@@ -33,6 +35,8 @@ jobs:
       PUPPETEER_SKIP_DOWNLOAD: 'true'
     steps:
       - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+        with:
+          persist-credentials: false
 
       - name: Install pnpm
         uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
@@ -45,16 +49,19 @@ jobs:
 
       - run: pnpm install
 
-      - name: Run compiler unit tests
-        run: pnpm run test-unit compiler
+      - parallel:
+          - name: Run compiler unit tests
+            run: pnpm run test-unit compiler
 
-      - name: Run ssr unit tests
-        run: pnpm run test-unit server-renderer
+          - name: Run ssr unit tests
+            run: pnpm run test-unit server-renderer
 
   e2e-test:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+        with:
+          persist-credentials: false
 
       - name: Setup cache for Chromium binary
         uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
@@ -93,6 +100,8 @@ jobs:
       PUPPETEER_SKIP_DOWNLOAD: 'true'
     steps:
       - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+        with:
+          persist-credentials: false
 
       - name: Install pnpm
         uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
@@ -105,11 +114,12 @@ jobs:
 
       - run: pnpm install
 
-      - name: Run eslint
-        run: pnpm run lint
+      - parallel:
+          - name: Run eslint
+            run: pnpm run lint
 
-      - name: Run prettier
-        run: pnpm run format-check
+          - name: Run prettier
+            run: pnpm run format-check
 
       - name: Run tsc
         run: pnpm run check