Skip to content

Commit bcaa7eb

Browse files
authored
ci: run build jobs and Copilot agent on fusion cluster runner (#5330)
* ci: remove app-test workflow * ci: run builds on fusion cluster runner, drop test workflow * ci: run copilot coding agent on fusion cluster runner * ci: remove pr-docs workflow * ci: run pre-release on fusion cluster runner, drop dead condition * ci: disable redundant GH Actions turbo cache on cluster runner jobs, remove pr-cleanup workflow * ci: remove ci-completed workflow * ci: remove cache workflow * ci: remove unused clear-cache action * docs(ci): add description/comment and clean up formatting in build-docs action * docs(ci): fix description key and remove dead code in build-packages action * docs(ci): add description to config-git-user action * ci: remove unused turbo-cache input from node-setup action * ci: drop TURBO_DAEMON override from node-setup, control via runner env instead * ci: run docs build job on fusion cluster runner * ci: run release publish jobs on fusion cluster runner (prepack build) * ci: run index-docs on fusion cluster runner (builds CLI) * ci: rework turbo task graph for affected builds and CLI-dependent indexing * ci: add turbo test task and run affected tests in PR CI
1 parent 1b20d52 commit bcaa7eb

21 files changed

Lines changed: 71 additions & 382 deletions

.github/actions/build-docs/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Build documents
2+
description: Bumps versions and builds the vue-press documentation site
23

34
inputs:
45
upload-artifact:
6+
description: Whether to upload the built site as a GitHub Pages artifact
57
default: true
68

79
runs:
@@ -13,6 +15,7 @@ runs:
1315
- name: Configure git user
1416
uses: ./.github/actions/config-git-user
1517

18+
# Applies pending changesets so docs build against the versions they'll ship with
1619
- name: Generate version
1720
shell: bash
1821
run: pnpm changeset version
@@ -28,4 +31,3 @@ runs:
2831
uses: actions/upload-pages-artifact@v4
2932
with:
3033
path: ./vue-press/dist
31-
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
name: Build code base
2-
Description: TODO
2+
description: Builds all workspace packages, or only those affected relative to the PR base branch
33

44
inputs:
55
only-affected:
6+
description: When true, builds only packages affected since github.base_ref instead of everything
67
default: false
78

89
runs:
910
using: composite
1011
steps:
11-
# - name: pre-compile
12-
# shell: bash
13-
# run: |
14-
# pnpm build:cli
15-
# pnpm link ./packages/cli
16-
1712
- name: Build project [all]
1813
if: ${{ inputs.only-affected == 'false' }}
1914
shell: bash
@@ -22,4 +17,4 @@ runs:
2217
- name: Build project [affected]
2318
if: ${{ inputs.only-affected == 'true' }}
2419
shell: bash
25-
run: pnpm turbo run build --continue --filter=...[origin/${{ github.base_ref }}]
20+
run: pnpm turbo run build --continue --affected

.github/actions/clear-cache/action.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/actions/clear-cache/clear-cache.sh

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/actions/config-git-user/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: configure git user
2+
description: Sets the git committer identity to github-actions[bot] for commits made by workflows
23

34
runs:
45
using: composite

.github/actions/node-setup/action.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,11 @@ description: General setup of node
33
inputs:
44
node-version:
55
default: 24
6-
turbo-cache:
7-
default: true
86

97
runs:
108
using: composite
119
steps:
1210

13-
- name: Disable turbo daemon for CI
14-
shell: bash
15-
run: echo "TURBO_DAEMON=false" >> "$GITHUB_ENV"
16-
17-
- name: Get pnpm lockfile hash
18-
if: ${{ inputs.turbo-cache == 'true' }}
19-
id: pnpm-lock-hash
20-
shell: bash
21-
run: |
22-
if [ -f pnpm-lock.yaml ]; then
23-
echo "hash=$(sha256sum pnpm-lock.yaml | cut -d' ' -f1)" >> $GITHUB_OUTPUT
24-
else
25-
echo "hash=no-lockfile" >> $GITHUB_OUTPUT
26-
fi
27-
28-
- name: Cache turbo build setup
29-
if: ${{ inputs.turbo-cache == 'true' }}
30-
uses: actions/cache@v5
31-
with:
32-
path: .turbo
33-
key: ${{ runner.os }}-turbo-${{ steps.pnpm-lock-hash.outputs.hash }}
34-
restore-keys: |
35-
${{ runner.os }}-turbo-
36-
3711
- name: Setup pnpm
3812
uses: pnpm/action-setup@v5
3913

.github/workflows/app-test.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/cache.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/ci-completed.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919
jobs:
2020
release-pkg:
2121
name: Version or publish packages
22-
runs-on: ubuntu-latest
22+
runs-on: fusion-gh-runner-fusion-framework
2323
# Job-specific permissions for package publishing
2424
permissions:
2525
contents: write # Required for creating releases and pushing changes
@@ -77,7 +77,7 @@ jobs:
7777
publish-vscode-extension:
7878
name: Publish VS Code extension to Marketplace
7979
needs: release-pkg
80-
runs-on: ubuntu-latest
80+
runs-on: fusion-gh-runner-fusion-framework
8181
environment: vs-marketplace
8282
permissions:
8383
contents: read

0 commit comments

Comments
 (0)