Skip to content

Commit 9b05731

Browse files
committed
ci: swap setup-go and fetch-depth-0 checkout to Blacksmith
Step 5 of the Blacksmith rollout from CLI-1497. setup-go -> useblacksmith/setup-go@v5: $GOCACHE moves to a sticky disk, so cgo + race-instrumented test binaries don't fully rebuild on every run. Swapped in every cli-go-ci.yml job (test, lint, start, link, codegen) plus release-shared.yml::build and test.yml's check / test-core / test-e2e. checkout -> useblacksmith/checkout@v1 only on jobs that need fetch-depth: 0 (semantic-release plan, fast-forward, and nx-affected in test-e2e). Default depth-1 checkouts are left on actions/checkout@v6 because the incremental fetch win there is negligible. Refs CLI-1502.
1 parent 74b1745 commit 9b05731

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/cli-go-ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525

26-
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
26+
- uses: useblacksmith/setup-go@v5
2727
with:
2828
go-version-file: apps/cli-go/go.mod
2929
cache: true
@@ -60,7 +60,7 @@ jobs:
6060
steps:
6161
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6262

63-
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
63+
- uses: useblacksmith/setup-go@v5
6464
with:
6565
go-version-file: apps/cli-go/go.mod
6666
# Linter requires no cache
@@ -78,7 +78,7 @@ jobs:
7878
runs-on: ubuntu-latest
7979
steps:
8080
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
81-
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
81+
- uses: useblacksmith/setup-go@v5
8282
with:
8383
go-version-file: apps/cli-go/go.mod
8484
cache: true
@@ -102,7 +102,7 @@ jobs:
102102
runs-on: ubuntu-latest
103103
steps:
104104
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
105-
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
105+
- uses: useblacksmith/setup-go@v5
106106
with:
107107
go-version-file: apps/cli-go/go.mod
108108
cache: true
@@ -118,7 +118,7 @@ jobs:
118118
steps:
119119
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
120120

121-
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
121+
- uses: useblacksmith/setup-go@v5
122122
with:
123123
go-version-file: apps/cli-go/go.mod
124124
cache: true

.github/workflows/release-shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
uses: ./.github/actions/setup
5858

5959
- name: Setup Go
60-
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
60+
uses: useblacksmith/setup-go@v5
6161
with:
6262
go-version-file: apps/cli-go/go.mod
6363
cache: true

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
with:
5656
app-id: ${{ secrets.APP_ID }}
5757
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
58-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
58+
- uses: useblacksmith/checkout@v1
5959
with:
6060
fetch-depth: 0
6161
token: ${{ steps.app-token.outputs.token }}
@@ -97,7 +97,7 @@ jobs:
9797
# Authorization header overrides the App token semantic-release puts in
9898
# the push URL — making the dry-push identify as `github-actions[bot]`
9999
# and get rejected by branch protection.
100-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
100+
- uses: useblacksmith/checkout@v1
101101
with:
102102
fetch-depth: 0
103103
persist-credentials: false

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Setup
3434
uses: ./.github/actions/setup
3535
- name: Setup Go
36-
uses: actions/setup-go@v5
36+
uses: useblacksmith/setup-go@v5
3737
with:
3838
go-version-file: apps/cli-go/go.mod
3939
cache-dependency-path: apps/cli-go/go.sum
@@ -57,7 +57,7 @@ jobs:
5757
- name: Setup
5858
uses: ./.github/actions/setup
5959
- name: Setup Go
60-
uses: actions/setup-go@v5
60+
uses: useblacksmith/setup-go@v5
6161
with:
6262
go-version-file: apps/cli-go/go.mod
6363
cache-dependency-path: apps/cli-go/go.sum
@@ -80,7 +80,7 @@ jobs:
8080
shard: [ 1, 2, 3 ]
8181
steps:
8282
- name: Checkout
83-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
83+
uses: useblacksmith/checkout@v1
8484
with:
8585
fetch-depth: 0
8686

@@ -123,7 +123,7 @@ jobs:
123123
- name: Setup Go
124124
if: steps.detect.outputs.cli_e2e == 'true' &&
125125
steps.cache-go-binary.outputs.cache-hit != 'true'
126-
uses: actions/setup-go@v5
126+
uses: useblacksmith/setup-go@v5
127127
with:
128128
go-version-file: apps/cli-go/go.mod
129129
cache-dependency-path: apps/cli-go/go.sum

0 commit comments

Comments
 (0)