From: Luke Nelson Date: Thu, 16 Jul 2026 00:21:06 +0000 (+0100) Subject: chore(ci): improve workflows (#15037) X-Git-Tag: v3.5.40~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7262e6398e380956cd4640e3cec6987959cd7b8a;p=thirdparty%2Fvuejs%2Fcore.git chore(ci): improve workflows (#15037) --- diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 15def5f60d..beb5549085 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ed749b726..37cbcea3ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/close-cant-reproduce-issues.yml b/.github/workflows/close-cant-reproduce-issues.yml index 594e3d5dfb..18653e6a1e 100644 --- a/.github/workflows/close-cant-reproduce-issues.yml +++ b/.github/workflows/close-cant-reproduce-issues.yml @@ -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 diff --git a/.github/workflows/ecosystem-ci-trigger.yml b/.github/workflows/ecosystem-ci-trigger.yml index df2161bd1f..70feed1463 100644 --- a/.github/workflows/ecosystem-ci-trigger.yml +++ b/.github/workflows/ecosystem-ci-trigger.yml @@ -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 diff --git a/.github/workflows/lock-closed-issues.yml b/.github/workflows/lock-closed-issues.yml index 204b1e842a..3334cfe67d 100644 --- a/.github/workflows/lock-closed-issues.yml +++ b/.github/workflows/lock-closed-issues.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45e879f49a..3a1bc44ad0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/size-data.yml b/.github/workflows/size-data.yml index dbdccdff44..09c58aa8b7 100644 --- a/.github/workflows/size-data.yml +++ b/.github/workflows/size-data.yml @@ -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 diff --git a/.github/workflows/size-report.yml b/.github/workflows/size-report.yml index eebe450580..21bf6c8dc0 100644 --- a/.github/workflows/size-report.yml +++ b/.github/workflows/size-report.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3827abcafa..ab8067f78c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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