mirror of
https://github.com/SukkaW/Surge.git
synced 2026-09-12 10:34:35 +08:00
CI: parallel more steps
This commit is contained in:
11
.github/workflows/benchmark-download.yml
vendored
11
.github/workflows/benchmark-download.yml
vendored
@@ -56,14 +56,21 @@ jobs:
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: pnpm/action-setup@v6
|
||||
- name: Set up pnpm
|
||||
id: setup_pnpm
|
||||
uses: pnpm/action-setup@v6
|
||||
background: true
|
||||
with:
|
||||
run_install: false
|
||||
cache: true
|
||||
- uses: actions/setup-node@v6
|
||||
- name: Set up Node.js
|
||||
id: setup_node
|
||||
uses: actions/setup-node@v6
|
||||
background: true
|
||||
with:
|
||||
node-version-file: ".node-version"
|
||||
package-manager-cache: false
|
||||
- wait: [setup_pnpm, setup_node]
|
||||
- run: pnpm config set --location=global minimumReleaseAge 0
|
||||
- run: pnpm install
|
||||
- name: Run download benchmark
|
||||
|
||||
11
.github/workflows/check-source-domain.yml
vendored
11
.github/workflows/check-source-domain.yml
vendored
@@ -24,11 +24,17 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: pnpm/action-setup@v6
|
||||
- name: Set up pnpm
|
||||
id: setup_pnpm
|
||||
uses: pnpm/action-setup@v6
|
||||
background: true
|
||||
with:
|
||||
run_install: false
|
||||
cache: true
|
||||
- uses: actions/setup-node@v6
|
||||
- name: Set up Node.js
|
||||
id: setup_node
|
||||
uses: actions/setup-node@v6
|
||||
background: true
|
||||
with:
|
||||
node-version-file: ".node-version"
|
||||
package-manager-cache: false
|
||||
@@ -59,6 +65,7 @@ jobs:
|
||||
${{ runner.os }}-shard${{ matrix.shard }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-
|
||||
${{ runner.os }}-shard${{ matrix.shard }}-v3-${{ steps.date.outputs.year }}-
|
||||
${{ runner.os }}-shard${{ matrix.shard }}-v3-
|
||||
- wait: [setup_pnpm, setup_node]
|
||||
- run: pnpm config set --location=global minimumReleaseAge 0
|
||||
- run: pnpm install
|
||||
- run: pnpm run node Build/validate-domain-alive.ts
|
||||
|
||||
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@@ -68,15 +68,22 @@ jobs:
|
||||
${{ runner.os }}-v3-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-
|
||||
${{ runner.os }}-v3-${{ steps.date.outputs.year }}-
|
||||
${{ runner.os }}-v3-
|
||||
# Setup Node.js and pnpm in foreground
|
||||
- uses: pnpm/action-setup@v6
|
||||
# Set up pnpm and Node.js in parallel; both must finish before pnpm runs.
|
||||
- name: Set up pnpm
|
||||
id: setup_pnpm
|
||||
uses: pnpm/action-setup@v6
|
||||
background: true
|
||||
with:
|
||||
run_install: false
|
||||
cache: true
|
||||
- uses: actions/setup-node@v6
|
||||
- name: Set up Node.js
|
||||
id: setup_node
|
||||
uses: actions/setup-node@v6
|
||||
background: true
|
||||
with:
|
||||
node-version-file: ".node-version"
|
||||
package-manager-cache: false
|
||||
- wait: [setup_pnpm, setup_node]
|
||||
- run: pnpm config set --location=global minimumReleaseAge 0
|
||||
- run: pnpm install
|
||||
# Foreground pnpm + Node.js setup complete, ensure previous build and cache.db are ready
|
||||
|
||||
Reference in New Issue
Block a user