simple-icons/.github
Eric Cornelissen a95ad430a3
Improve CI config: caching & refactoring (#5912)
* Set up caching jest cache for tests in CI

Use actions/cache to cache the jest cache between runs. The cache will
be invalided if the package-lock.json file is updated OR after 7
days [1]. The cache directory for jest is now also configured to be in a
directory called ".jestcache" at the root of this project. This
directory will be ignored by git due to its addition to the .gitignore.

--
1. https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy

* Trigger jest cache in CI

* Include date in cache key

This way the cache is invalidated very day

* Add name for caching Jest's cache step

* Demonstrate test failure with cache enabled

* Revert ff915d4660

* Cache dependencies

* Update Jest cache configuration

* Refactor and use Jest cache in Publish workfow

- Refactor out the duplicated sanity check in the publish workflow into
  a separate, depended upon, job.
- Use the Jest cache in the Publish workflow.

* Update linter job in CI to just run `npm run lint`

... whereas previously it ran each linter separately. This avoids having
to update the workflow file if a new linter is added (or a linter is
removed).

* Use run_number instead of date for jest cache in CI

* Simplify GitHub release publish job
2021-06-29 12:07:50 +02:00
..
ISSUE_TEMPLATE Add issue templated for docs and update existing issue templates (#5676) 2021-05-31 19:13:05 +02:00
workflows Improve CI config: caching & refactoring (#5912) 2021-06-29 12:07:50 +02:00
FUNDING.yml Add Funding Option (#5149) 2021-04-15 17:26:41 +01:00
labeler.yml Minor improvements (#4708) 2021-01-15 21:47:00 +01:00
PULL_REQUEST_TEMPLATE.md Update Preview Generator URL in PR Template (#5430) 2021-04-11 12:14:55 +02:00
renovate.json5 Configure Renovate (#1633) 2019-09-27 10:19:06 +03:00