File tree Expand file tree Collapse file tree 6 files changed +21
-34
lines changed Expand file tree Collapse file tree 6 files changed +21
-34
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,14 @@ jobs:
1616 name : CRD Sync Validation
1717 steps :
1818 - name : Checkout
19- uses : actions/checkout@v2
19+ uses : actions/checkout@v3
2020 with :
2121 path : governance-policy-addon-controller
2222
23- - name : Set up Go - ${{ matrix.go }}
24- uses : actions/setup-go@v2
25- id : go
23+ - name : Set up Go
24+ uses : actions/setup-go@v3
2625 with :
27- go-version : ' 1.18 '
26+ go-version-file : governance-policy-addon-controller/go.mod
2827
2928 - name : Synchronize CRDs
3029 run : |
Original file line number Diff line number Diff line change 1212 runs-on : ubuntu-latest
1313 steps :
1414 - name : Checkout Repo
15- uses : actions/checkout@v2
15+ uses : actions/checkout@v3
1616 - name : Run FOSSA Scan
1717 uses : fossas/fossa-action@v1
1818 with :
Original file line number Diff line number Diff line change 88 workflow_dispatch : {}
99
1010env :
11- # Common versions
12- GO_VERSION : ' 1.18'
13- GO_REQUIRED_MIN_VERSION : ' '
1411 GOPATH : ' /home/runner/work/governance-policy-addon-controller/governance-policy-addon-controller/go'
1512defaults :
1613 run :
@@ -22,14 +19,14 @@ jobs:
2219 runs-on : ubuntu-latest
2320 steps :
2421 - name : checkout code
25- uses : actions/checkout@v2
22+ uses : actions/checkout@v3
2623 with :
2724 fetch-depth : 1
2825 path : go/src/open-cluster-management.io/governance-policy-addon-controller
2926 - name : install Go
30- uses : actions/setup-go@v2
27+ uses : actions/setup-go@v3
3128 with :
32- go-version : ${{ env.GO_VERSION }}
29+ go-version-file : go/src/open-cluster-management.io/governance-policy-addon-controller/go.mod
3330 - name : images
3431 run : make build-images
3532 - name : push
Original file line number Diff line number Diff line change 66 - ' v*.*.*'
77
88env :
9- GO_VERSION : ' 1.18'
109 TAG : ${{ github.ref_name }}
1110 RELEASE_VERSION : ${{ github.ref_name }}
1211defaults :
@@ -19,14 +18,14 @@ jobs:
1918 runs-on : ubuntu-latest
2019 steps :
2120 - name : checkout code
22- uses : actions/checkout@v2
21+ uses : actions/checkout@v3
2322 with :
2423 fetch-depth : 1
2524 path : go/src/open-cluster-management.io/governance-policy-addon-controller
2625 - name : install Go
27- uses : actions/setup-go@v2
26+ uses : actions/setup-go@v3
2827 with :
29- go-version : ${{ env.GO_VERSION }}
28+ go-version-file : go/src/open-cluster-management.io/governance-policy-addon-controller/go.mod
3029 - name : build images
3130 run : |
3231 make build-images
Original file line number Diff line number Diff line change 1818 runs-on : ubuntu-latest
1919 strategy :
2020 matrix :
21- go :
22- - ' 1.18'
2321 # KinD tags: https://hub.docker.com/r/kindest/node/tags
2422 # (OCP 4.6 runs Kubernetes v1.19)
2523 kind :
@@ -30,17 +28,16 @@ jobs:
3028 - " false"
3129 name : KinD tests
3230 steps :
33- - name : Checkout
34- uses : actions/checkout@v2
31+ - name : Checkout
32+ uses : actions/checkout@v3
3533 with :
3634 path : governance-policy-addon-controller
3735 fetch-depth : 0 # Fetch all history for all tags and branches
3836
39- - name : Set up Go - ${{ matrix.go }}
40- uses : actions/setup-go@v2
41- id : go
37+ - name : Set up Go
38+ uses : actions/setup-go@v3
4239 with :
43- go-version : ${{ matrix.go }}
40+ go-version-file : governance-policy-addon-controller/go.mod
4441
4542 - name : Create KinD Cluster (${{ matrix.kind }}) and deploy components
4643 env :
Original file line number Diff line number Diff line change @@ -16,23 +16,18 @@ defaults:
1616jobs :
1717 linting-and-unit-tests :
1818 runs-on : ubuntu-latest
19- strategy :
20- matrix :
21- go :
22- - ' 1.18'
2319 name : Linting and Unit tests
2420 steps :
25- - name : Checkout
26- uses : actions/checkout@v2
21+ - name : Checkout
22+ uses : actions/checkout@v3
2723 with :
2824 path : governance-policy-addon-controller
2925 fetch-depth : 0 # Fetch all history for all tags and branches
3026
31- - name : Set up Go - ${{ matrix.go }}
32- uses : actions/setup-go@v2
33- id : go
27+ - name : Set up Go
28+ uses : actions/setup-go@v3
3429 with :
35- go-version : ${{ matrix.go }}
30+ go-version-file : governance-policy-addon-controller/go.mod
3631
3732 - name : Verify modules
3833 run : |
You can’t perform that action at this time.
0 commit comments