You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's the official GitHub action for [golangci-lint](https://github.com/golangci/golangci-lint) from it's authors.
6
+
The action runs [golangci-lint](https://github.com/golangci/golangci-lint) and reports issues from linters.
6
7
7
-
The action that runs [golangci-lint](https://github.com/golangci/golangci-lint) and reports issues from linters.
8
+

8
9
9
10
## How to use
10
11
@@ -57,13 +58,12 @@ The action was implemented with performance in mind:
57
58
2. We don't use Docker because image pulling is slow.
58
59
3. We do as much as we can in parallel, e.g. we download cache, go and golangci-lint binary in parallel.
59
60
60
-
For example, in a repository of [golangci-lint](https://github.com/golangci/golangci-lint) running this action without the cache takes 35s, but with cache takes 800ms.
61
-
But the total execution time of the action on [golangci-lint](https://github.com/golangci/golangci-lint) repository is 14s:
61
+
For example, in a repository of [golangci-lint](https://github.com/golangci/golangci-lint) running this action without the cache takes 50s, but with cache takes 14s:
62
62
* in parallel:
63
63
* 13s to download Go
64
-
* 3.7s to restore 50 MB of cache
64
+
* 4s to restore 50 MB of cache
65
65
* 1s to find and install `golangci-lint`
66
-
* 1s to run `golangci-lint`
66
+
* 1s to run `golangci-lint` (it takes 35s without cache)
0 commit comments