* Expire cache periodically to avoid unbounded size
The cache key includes a sequence number that rotates every 7 days
but because we are also using the base `golangci-lint.cache` as a
restore key, the new cache will always be seeded with the full
contents of the old cache.
In particular for the go module cache, this leads to an ever
increasing number of cached packages that never get pruned.
This commit updates it so we stop using `golangci-lint.cache` as
a restore key, which will force a build from an empty cache once
every 7 days.
* Rebuild files in dist/
* Update all direct dependencies
* use node v16
* upgrade typescript to v4.5.5
* upgrade actions/github to v5
* use vercel/ncc v0.33.3
* Add compatibility note for v3
* increase timeout for the testing workflow
* Add --overwrite flag to tar extraction
There are times when previous actions have already extracted at least
some files to the cache location. This results in subsequent cache
extraction operations to emit errors such as:
> /usr/bin/tar: [dest_file_path]: Cannot open: File exists
This adds the --overwrite flag to the extract call to force tar to
just overwrite these files rather than reporting errors.
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* npm run lint-fix & npm run format
* ignore macOS
Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
Add option to skip caching the Go package directory (~/go/pkg).
Add option to skip caching the Go build directory (~/.cache/go-build).
Update README to mention new options.
This commit is to support X.Y.Z version in config.
- if X.Y.Z version is passed, honour it 👍
- if X.Y version is passed, keep the same behaviour
as it is right now.
Closes#98
Signed-off-by: Tam Mach <sayboras@yahoo.com>