File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Pandaria Verify Changes
2+
3+ on :
4+ push :
5+ pull_request :
6+ branches :
7+ - ' release/*'
8+ - ' main'
9+
10+ jobs :
11+ verify-changes :
12+ name : verify-changes
13+ runs-on : ubuntu-latest
14+ timeout-minutes : 20
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18+ with :
19+ submodules : recursive
20+
21+ - name : Setup Go
22+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
23+ with :
24+ go-version-file : ' ./go.mod'
25+
26+ - name : Go Version
27+ run : go version
28+
29+ - name : Generate Golang
30+ run : |
31+ export PATH=$PATH:/home/runner/go/bin/
32+
33+ - name : Setup GOPRIVATE
34+ env :
35+ RD_ONLY_GH_TOKEN : ${{ secrets.RD_ONLY_GH_TOKEN }}
36+ run : |
37+ go env -w GOPRIVATE=github.com/cnrancher
38+ git config --global url."https://oauth2:${RD_ONLY_GH_TOKEN}@github.com/cnrancher".insteadOf "https://github.com/cnrancher"
39+
40+ - name : Verify Go Mod
41+ run : ./.github/scripts/check-go-mod.sh
42+
43+ - name : Build Packages
44+ run : ./.github/scripts/build-packages.sh
45+
46+ - name : Golangci Lint
47+ uses : golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
48+ with :
49+ # Patch version isn't needed; https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#internals
50+ version : v1.57
51+ # Skip cache cause: https://github.com/golangci/golangci-lint-action/issues/135
52+ skip-cache : true
Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ name: Verify Changes
22
33on :
44 push :
5- pull_request :
6- branches :
7- - ' release/*'
8- - ' main'
5+ branches-ignore : [ '**' ] # PANDARIA: Disabled
96
107jobs :
118 verify-changes :
2926 - name : Generate Golang
3027 run : |
3128 export PATH=$PATH:/home/runner/go/bin/
32-
29+
3330 - name : Verify Go Mod
3431 run : ./.github/scripts/check-go-mod.sh
3532
4037 uses : golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
4138 with :
4239 # Patch version isn't needed; https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#internals
43- version : v1.57
40+ version : v1.57
4441 # Skip cache cause: https://github.com/golangci/golangci-lint-action/issues/135
4542 skip-cache : true
You can’t perform that action at this time.
0 commit comments