7
7
name : Markdown Lint
8
8
runs-on : ubuntu-22.04
9
9
steps :
10
- - name : Checkout Code
11
- uses : actions/checkout@v3
12
- with :
13
- fetch-depth : 0
14
- - name : Lint Code Base
15
- uses : github/super-linter@v4
16
- env :
17
- VALIDATE_MARKDOWN : true
18
- VALIDATE_ALL_CODEBASE : false
19
- DEFAULT_BRANCH : main
20
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
- LINTER_RULES_PATH : /
22
- MARKDOWN_CONFIG_FILE : .markdownlint.yml
23
-
24
-
25
- golang-lint :
26
- name : Golang Lint
27
- runs-on : ubuntu-22.04
28
- steps :
29
- - uses : actions/checkout@v3
30
- - uses : actions/setup-go@v4
31
- with :
32
- go-version : ' 1.23'
33
- cache : false
34
- - name : golangci-lint
35
- uses : golangci/golangci-lint-action@v3
36
- with :
37
- # Require: The version of golangci-lint to use.
38
- # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
39
- # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
40
- version : latest
41
-
42
- # Optional: working directory, useful for monorepos
43
- # working-directory: somedir
44
-
45
- # Optional: golangci-lint command line arguments.
46
- #
47
- # Note: By default, the `.golangci.yml` file should be at the root of the repository.
48
- # The location of the configuration file can be changed by using `--config=`
49
- # args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
50
- args : --timeout=30m
51
-
52
- # Optional: show only new issues if it's a pull request. The default value is `false`.
53
- # only-new-issues: true
54
-
55
- # Optional: if set to true, then all caching functionality will be completely disabled,
56
- # takes precedence over all other caching options.
57
- # skip-cache: true
58
-
59
- # Optional: if set to true, then the action won't cache or restore ~/go/pkg.
60
- # skip-pkg-cache: true
61
-
62
- # Optional: if set to true, then the action won't cache or restore ~/.cache/go-build.
63
- # skip-build-cache: true
64
-
65
- # Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
66
- # install-mode: "goinstall"
10
+ - name : Checkout Code
11
+ uses : actions/checkout@v3
12
+ with :
13
+ fetch-depth : 0
14
+ - name : Lint Code Base
15
+ uses : github/super-linter@v4
16
+ env :
17
+ VALIDATE_MARKDOWN : true
18
+ VALIDATE_ALL_CODEBASE : false
19
+ DEFAULT_BRANCH : main
20
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
+ LINTER_RULES_PATH : /
22
+ MARKDOWN_CONFIG_FILE : .markdownlint.yml
67
23
68
24
69
25
golang-test :
@@ -72,21 +28,35 @@ jobs:
72
28
strategy :
73
29
matrix :
74
30
go-version : ['1.23']
31
+ steps :
32
+ - uses : actions/checkout@v3
33
+ with :
34
+ fetch-depth : 1
35
+ - uses : actions/checkout@v4
36
+ - name : Setup Go ${{ matrix.go-version }}
37
+ uses : actions/setup-go@v4
38
+ with :
39
+ go-version : ${{ matrix.go-version }}
40
+ - name : Display Go version
41
+ run : go version
42
+ - name : Install dependencies
43
+ run : go get ./...
44
+ - name : Test with Go
45
+ run : make test
46
+
47
+
48
+ golang-lint :
49
+ name : golang-lint
50
+ runs-on : ubuntu-latest
75
51
steps :
76
52
- uses : actions/checkout@v3
53
+ - uses : actions/setup-go@v4
77
54
with :
78
- fetch-depth : 1
79
- - uses : actions/checkout@v4
80
- - name : Setup Go ${{ matrix.go-version }}
81
- uses : actions/setup-go@v4
82
- with :
83
- go-version : ${{ matrix.go-version }}
84
- - name : Display Go version
85
- run : go version
86
- - name : Install dependencies
87
- run : go get ./...
88
- - name : Test with Go
89
- run : make test
55
+ go-version : ' 1.23'
56
+ cache : false
57
+ - name : golangci-lint
58
+ run : |
59
+ make lint
90
60
91
61
92
62
chainsaw-test :
101
71
with :
102
72
go-version : ' 1.23'
103
73
cache : false
104
- - name : Create KinD cluster
74
+ - name : Create KinD clustet
105
75
env :
106
76
KINDTEST_K8S_VERSION : ${{ matrix.k8s-version}}
107
77
KUBECONFIG : kind-kubeconfig-${{ matrix.k8s-version }}
@@ -130,29 +100,21 @@ jobs:
130
100
- golang-test
131
101
- chainsaw-test
132
102
steps :
133
- - uses : actions/checkout@v3
134
- with :
135
- fetch-depth : 1
136
- - name : Set up QEMU
137
- uses : docker/setup-qemu-action@v3
138
- - name : Set up Docker Buildx
139
- uses : docker/setup-buildx-action@v3
140
- with :
141
- platforms : linux/amd64,linux/arm64
142
- - name : Login to quay.io
143
- uses : docker/login-action@v2
144
- with :
145
- registry : quay.io
146
- username : ${{ secrets.QUAY_USERNAME }}
147
- password : ${{ secrets.QUAY_PASSWORD }}
148
- - name : Build and push operator
149
- run : |
150
- make docker-buildx
151
- - name : Build and push operator bundle
152
- run : |
153
- make bundle
154
- make bundle-buildx
155
- - name : Build and push catalog
156
- run : |
157
- make catalog
158
- make catalog-buildx
103
+ - uses : actions/checkout@v3
104
+ with :
105
+ fetch-depth : 1
106
+ - name : Set up QEMU
107
+ uses : docker/setup-qemu-action@v3
108
+ - name : Set up Docker Buildx
109
+ uses : docker/setup-buildx-action@v3
110
+ with :
111
+ platforms : linux/amd64,linux/arm64
112
+ - name : Login to quay.io
113
+ uses : docker/login-action@v2
114
+ with :
115
+ registry : quay.io
116
+ username : ${{ secrets.QUAY_USERNAME }}
117
+ password : ${{ secrets.QUAY_PASSWORD }}
118
+ - name : Build and push operator
119
+ run : |
120
+ make docker-buildx
0 commit comments