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 :
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 }}
0 commit comments