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
Copy file name to clipboardExpand all lines: README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -115,8 +115,8 @@ on:
115
115
pull_request:
116
116
push:
117
117
branches:
118
-
- "main"
119
-
- "master"
118
+
- main
119
+
- master
120
120
121
121
env:
122
122
GO_VERSION: stable
@@ -166,8 +166,8 @@ on:
166
166
pull_request:
167
167
push:
168
168
branches:
169
-
- "main"
170
-
- "master"
169
+
- main
170
+
- master
171
171
172
172
jobs:
173
173
golangci-lint:
@@ -498,7 +498,7 @@ permissions:
498
498
499
499
The action was implemented with performance in mind:
500
500
501
-
1. We cache data from golangci-lint analysis between builds by using [@actions/cache](https://github.com/actions/toolkit/tree/master/packages/cache).
501
+
1. We cache data from golangci-lint analysis between builds by using [@actions/cache](https://github.com/actions/toolkit/tree/HEAD/packages/cache).
502
502
2. We don't use Docker because image pulling is slow.
503
503
3. We do as much as we can in parallel, e.g. we download cache, and golangci-lint binary in parallel.
504
504
@@ -514,17 +514,17 @@ We use JavaScript-based action.
514
514
We don't use Docker-based action because:
515
515
516
516
1. Docker pulling is slow currently
517
-
2. it's easier to use caching from [@actions/cache](https://github.com/actions/toolkit/tree/master/packages/cache)
517
+
2. it's easier to use caching from [@actions/cache](https://github.com/actions/toolkit/tree/HEAD/packages/cache)
518
518
519
519
We support different platforms, such as `ubuntu`, `macos`, and `windows` with `x32` and `x64` archs.
520
520
521
521
Inside our action, we perform 3 steps:
522
522
523
523
1. Setup environment running in parallel:
524
524
* restore [cache](https://github.com/actions/cache) of previous analyses
525
-
* fetch [action config](https://github.com/golangci/golangci-lint/blob/master/assets/github-action-config.json) and find the latest `golangci-lint` patch version for needed version
525
+
* fetch [action config](https://github.com/golangci/golangci-lint/blob/HEAD/assets/github-action-config.json) and find the latest `golangci-lint` patch version for needed version
526
526
(users of this action can specify only minor version of `golangci-lint`).
527
-
After that install [golangci-lint](https://github.com/golangci/golangci-lint) using [@actions/tool-cache](https://github.com/actions/toolkit/tree/master/packages/tool-cache)
527
+
After that install [golangci-lint](https://github.com/golangci/golangci-lint) using [@actions/tool-cache](https://github.com/actions/toolkit/tree/HEAD/packages/tool-cache)
528
528
2. Run `golangci-lint` with specified by user `args`
0 commit comments