File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ Following tasks are generated
49
49
* ` rake go:test `
50
50
* ` rake go:testrace `
51
51
* ` rake go:fmt `
52
+ * ` rake go:build_envs `
52
53
53
54
#### Example (With config)
54
55
``` ruby
@@ -68,6 +69,7 @@ Following tasks are generated
68
69
* ` rake go5:test `
69
70
* ` rake go5:testrace `
70
71
* ` rake go5:fmt `
72
+ * ` rake go5:build_envs `
71
73
72
74
#### Example (Add additional tasks)
73
75
``` ruby
@@ -89,6 +91,24 @@ namespace :go do
89
91
end
90
92
```
91
93
94
+ #### Example (Use [ golangci/golangci-lint-action] ( https://github.com/golangci/golangci-lint-action ) )
95
+ ``` yml
96
+ jobs :
97
+ go-lint :
98
+ runs-on : ubuntu-latest
99
+
100
+ steps :
101
+ - uses : actions/checkout@v4
102
+ - uses : actions/setup-go@v5
103
+ - uses : ruby/setup-ruby@v1
104
+
105
+ - name : export CGO_CFLAGS for golangci-lint
106
+ run : bundle exec rake go:build_envs[CGO_CFLAGS] >> $GITHUB_ENV
107
+
108
+ - name : Run golangci-lint
109
+ uses : golangci/golangci-lint-action@v6
110
+ ` ` `
111
+
92
112
#### Available configurations
93
113
* ` task_namespace` : task namespace (default: `:go`)
94
114
* `go_bin_path` : path to go binary (default: `"go"`)
You can’t perform that action at this time.
0 commit comments