Understand the golangci-lint-action execution model
mainThe action is implemented as a JavaScript-based action rather than a Docker-based action to improve speed and simplify caching. It supports multiple platforms including ubuntu, macos, and windows across x32 and x64 architectures.
The action follows a three-step lifecycle:
- Environment Setup: Restores existing cache, fetches the latest
golangci-lintpatch version for the specified minor version, and installsgolangci-lintusing@actions/tool-cache. - Execution: Runs
golangci-lintusing theargsprovided by the user. - Cache Persistence: Saves the updated cache for subsequent builds.