mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-01-16 04:14:30 +07:00
docs: remove perf example
This commit is contained in:
@@ -523,7 +523,7 @@ permissions:
|
|||||||
pull-requests: read
|
pull-requests: read
|
||||||
```
|
```
|
||||||
|
|
||||||
For annotations to work, use the default format output (`text`) and either use `actions/setup-go` in the job or enable the internal [problem matchers](#problem-matchers).
|
For annotations to work, use the default format output (`text`) and either use [`actions/setup-go`](https://github.com/actions/setup-go) in the job or enable the internal [problem matchers](#problem-matchers).
|
||||||
|
|
||||||
## Performance
|
## Performance
|
||||||
|
|
||||||
@@ -532,12 +532,7 @@ The action was implemented with performance in mind:
|
|||||||
1. We cache data from golangci-lint analysis between builds by using [@actions/cache](https://github.com/actions/toolkit/tree/HEAD/packages/cache).
|
1. We cache data from golangci-lint analysis between builds by using [@actions/cache](https://github.com/actions/toolkit/tree/HEAD/packages/cache).
|
||||||
2. We don't use Docker because image pulling is slow.
|
2. We don't use Docker because image pulling is slow.
|
||||||
3. We do as much as we can in parallel, e.g., we download the cache and the golangci-lint binary in parallel.
|
3. We do as much as we can in parallel, e.g., we download the cache and the golangci-lint binary in parallel.
|
||||||
|
4. We rely on [`actions/setup-go`](https://github.com/actions/setup-go) for Go module cache.
|
||||||
For example, in the [golangci-lint](https://github.com/golangci/golangci-lint) repository, running this action without the cache takes 50s, but with the cache it takes 14s:
|
|
||||||
* in parallel:
|
|
||||||
* 4s to restore 50 MB of cache
|
|
||||||
* 1s to find and install `golangci-lint`
|
|
||||||
* 1s to run `golangci-lint` (it takes 35s without cache)
|
|
||||||
|
|
||||||
## Internals
|
## Internals
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user