mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-07-30 08:00:36 -04:00
speed up CI and golangci-lint (#1070)
Run CI on mac os only with go1.13 and on windows only on go1.14. Speed up tests. Introduce --allow-parallel-runners. Block on parallel run lock 5s instead of 60s. Don't invalidate analysis cache for minor config changes.
This commit is contained in:
parent
f0012d3248
commit
cb58d1f82e
16 changed files with 145 additions and 71 deletions
|
@ -170,9 +170,12 @@ func TestEnabledLinters(t *testing.T) {
|
|||
},
|
||||
}
|
||||
|
||||
runner := testshared.NewLintRunner(t)
|
||||
for _, c := range cases {
|
||||
c := c
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
runArgs := []string{"-v"}
|
||||
if !c.noImplicitFast {
|
||||
runArgs = append(runArgs, "--fast")
|
||||
|
@ -180,8 +183,7 @@ func TestEnabledLinters(t *testing.T) {
|
|||
if c.args != "" {
|
||||
runArgs = append(runArgs, strings.Split(c.args, " ")...)
|
||||
}
|
||||
runArgs = append(runArgs, minimalPkg)
|
||||
r := testshared.NewLintRunner(t).RunWithYamlConfig(c.cfg, runArgs...)
|
||||
r := runner.RunCommandWithYamlConfig(c.cfg, "linters", runArgs...)
|
||||
sort.StringSlice(c.el).Sort()
|
||||
|
||||
expectedLine := fmt.Sprintf("Active %d linters: [%s]", len(c.el), strings.Join(c.el, " "))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue