12 Commits

Author SHA1 Message Date
bbernays
1626f2bd94
Support Caching in Mono Repo (#629) 2023-01-14 16:43:01 +01:00
Eric Zimanyi
537aa1903e
Expire cache periodically to avoid unbounded size (#466)
* 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/
2022-05-10 21:30:26 -07:00
Tomas Dabasinskas
cdfc708aeb
Allow to disable caching completely (#351)
* Add skip-cache parameter

* Update README

* Implement cache skipping

* Run prettier

* update descriptions

* re-build dist

Co-authored-by: Sergey Vilgelm <sergey@vilgelm.com>
2022-02-26 08:16:23 -08:00
Sindre Røkenes Myren
0dd30832fc
Add options to skip caching of folders. (#154)
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.
2021-02-14 10:59:58 -06:00
Sergey Vilgelm
6317259e28
Run action on different platforms (#65) 2020-08-03 17:35:08 +03:00
dependabot[bot]
65dc624d8b
build(deps-dev): bump prettier from 1.19.1 to 2.0.5 (#52)
* build(deps-dev): bump prettier from 1.19.1 to 2.0.5

Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.5.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.5)

Signed-off-by: dependabot[bot] <support@github.com>

* Fix prettier

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sergey Vilgelm <sergey.vilgelm@ibm.com>
2020-07-14 09:25:11 -05:00
Denis Isaev
8870cfbcd4
remove output setting (#22)
Relates: #21
2020-05-23 12:34:30 +03:00
Tam Mach
3395f777a4
Replace forked cache by official npm (#21)
* Replace forked cache by official npm

* Follow the same validation as @action/cache

* Remove debug log
2020-05-23 12:25:16 +03:00
Denis Isaev
27e14e0f3f use action config, don't require github token
fixes #11
2020-05-09 16:34:52 +03:00
Denis Isaev
13e2c1f984
fix go.mod hashsum 2020-05-05 17:17:46 +03:00
Denis Isaev
b7926cae39
improve caching 2020-05-05 17:03:47 +03:00
Denis Isaev
853ade09ed
reimplement github action in typescript 2020-05-04 17:48:04 +03:00