Skip to content

Commit fca6c98

Browse files
authored
chore: Change CI runner from ubuntu-latest to ubicloud-standard-2 (#22224)
As a result of analyzing actions cost usage
1 parent 96f95cd commit fca6c98

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/cli.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
os: [ubuntu-latest, macos-latest, windows-latest]
35+
os: [ubicloud-standard-2, macos-latest, windows-latest]
3636
steps:
3737
- uses: actions/checkout@v6
3838
with:
@@ -53,7 +53,7 @@ jobs:
5353
${{ runner.os }}-go-${{ steps.setup-go.outputs.go-version }}-test-cli-
5454
- name: golangci-lint
5555
uses: golangci/golangci-lint-action@v9
56-
if: matrix.os == 'ubuntu-latest'
56+
if: matrix.os == 'ubicloud-standard-2'
5757
with:
5858
version: v2.10.1
5959
working-directory: cli
@@ -62,29 +62,27 @@ jobs:
6262
- name: Test
6363
run: make test
6464
- name: gen
65-
if: matrix.os == 'ubuntu-latest'
65+
if: matrix.os == 'ubicloud-standard-2'
6666
run: make gen
6767
- name: Fail if cli files are changed
68-
if: matrix.os == 'ubuntu-latest'
68+
if: matrix.os == 'ubicloud-standard-2'
6969
run: test "$(git status -s | wc -l)" -eq 0 || (git status -s; exit 1)
7070
validate-release:
7171
timeout-minutes: 30
72-
runs-on: ubuntu-latest
72+
runs-on: ubicloud-standard-2
73+
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
7374
env:
7475
CGO_ENABLED: 0
7576
steps:
7677
- name: Checkout
77-
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
7878
uses: actions/checkout@v6
7979
- name: Set up Go
80-
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
8180
id: setup-go
8281
uses: actions/setup-go@v6
8382
with:
8483
go-version-file: cli/go.mod
8584
cache: false
8685
- uses: actions/cache@v5
87-
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
8886
with:
8987
path: |
9088
~/.cache/go-build
@@ -97,14 +95,12 @@ jobs:
9795
- name: Set up Docker Buildx
9896
uses: docker/setup-buildx-action@v3
9997
- name: Install GoReleaser
100-
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
10198
uses: goreleaser/goreleaser-action@v7
10299
with:
103100
distribution: goreleaser-pro
104101
version: latest
105102
install-only: true
106103
- name: Run GoReleaser Dry-Run
107-
if: startsWith(github.head_ref, 'release-please--branches--main--components') || github.event_name == 'push'
108104
run: goreleaser release --snapshot --clean --skip=validate,publish,sign -f ./cli/.goreleaser.yaml
109105
env:
110106
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

scripts/workflows/wait_for_required_workflows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = async ({github, context}) => {
5959
if (actions.includes("cli")) {
6060
actions = [...actions, 'validate-release']
6161
actions = actions.filter(action => action !== "cli")
62-
actions = ["cli (ubuntu-latest)", "cli (windows-latest)", "cli (macos-latest)", ...actions]
62+
actions = ["cli (ubicloud-standard-2)", "cli (windows-latest)", "cli (macos-latest)", ...actions]
6363
}
6464

6565
const pluginsWithConfigUI = getPluginsWithConfigUI()

0 commit comments

Comments
 (0)