File tree Expand file tree Collapse file tree 4 files changed +18
-7
lines changed Expand file tree Collapse file tree 4 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,14 @@ name: "Code Scanning - Action"
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches :
6
+ - master
7
+ - main
6
8
pull_request :
7
9
# The branches below must be a subset of the branches above
8
- branches : [ master ]
10
+ branches :
11
+ - master
12
+ - main
9
13
schedule :
10
14
- cron : ' 0 17 * * 5'
11
15
Original file line number Diff line number Diff line change 1
1
name : " build-and-test"
2
2
on : # rebuild any PRs and main branch changes
3
3
pull_request :
4
+ branches :
5
+ - master
6
+ - main
4
7
push :
5
8
branches :
6
9
- master
10
+ - main
7
11
- " releases/*"
8
12
9
13
jobs :
53
57
version :
54
58
- " "
55
59
- " latest"
56
- - " v1.60"
57
- - " v1.60.1"
60
+ - " v1.60" # TODO(ldez): it should be updated for v2.
61
+ - " v1.60.1" # TODO(ldez): it should be updated for v2.
58
62
runs-on : ${{ matrix.os }}
59
63
permissions :
60
64
contents : read
82
86
version :
83
87
- " "
84
88
- " latest"
85
- - " v1.60.1"
86
- - " adbdfdb288e939a175182b7a12b7555215ce98b2"
89
+ - " v1.60.1" # TODO(ldez): it should be updated for v2.
90
+ - " adbdfdb288e939a175182b7a12b7555215ce98b2" # TODO(ldez): it should be updated for v2.
87
91
runs-on : ${{ matrix.os }}
88
92
permissions :
89
93
contents : read
Original file line number Diff line number Diff line change @@ -91,12 +91,14 @@ export async function goInstall(versionConfig: VersionConfig): Promise<string> {
91
91
92
92
const options : ExecOptions = { env : { ...process . env , CGO_ENABLED : "1" } }
93
93
94
+ // TODO(ldez): it should be updated for v2.
94
95
const exres = await execShellCommand (
95
96
`go install github.com/golangci/golangci-lint/cmd/golangci-lint@${ versionConfig . TargetVersion } ` ,
96
97
options
97
98
)
98
99
printOutput ( exres )
99
100
101
+ // TODO(ldez): it should be updated for v2.
100
102
const res = await execShellCommand (
101
103
`go install -n github.com/golangci/golangci-lint/cmd/golangci-lint@${ versionConfig . TargetVersion } ` ,
102
104
options
Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ export async function findLintVersion(mode: InstallMode): Promise<VersionConfig>
135
135
136
136
if ( mode == InstallMode . GoInstall ) {
137
137
const v : string = core . getInput ( `version` )
138
- // TODO(ldez): latest should be replaced with an explicit version (ex: v1.64.0)
138
+ // TODO(ldez): latest should be replaced with an explicit version (ex: v1.64.0).
139
+ // TODO(ldez): AssetURL should be updated for v2.
139
140
return { TargetVersion : v ? v : "latest" , AssetURL : "github.com/golangci/golangci-lint" }
140
141
}
141
142
You can’t perform that action at this time.
0 commit comments