mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-14 07:18:44 -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
internal/cache
6
internal/cache/cache_test.go
vendored
6
internal/cache/cache_test.go
vendored
|
@ -20,6 +20,8 @@ func init() {
|
|||
}
|
||||
|
||||
func TestBasic(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
dir, err := ioutil.TempDir("", "cachetest-")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
@ -65,6 +67,8 @@ func TestBasic(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestGrowth(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
dir, err := ioutil.TempDir("", "cachetest-")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
@ -151,6 +155,8 @@ func dummyID(x int) [HashSize]byte {
|
|||
}
|
||||
|
||||
func TestCacheTrim(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
dir, err := ioutil.TempDir("", "cachetest-")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue