A caching plugin that can be invoked from your build script.
A library of commonly used commands for your CI builds.
For a directory structure that looks like:
my-project/
├── node_modules/
├── package.json
├── package-lock.json
Add the following to your pipeline.yml
:
steps:
- command: |
# To persist the cache
save_cache node_modules/ $(hash_file package-lock.json)
# To restore the cache, if present
restore_cache $(hash_file package-lock.json)
plugins:
- automattic/a8c-ci-toolkit#3.7.1:
bucket: a8c-ci-cache # optional
Don't forget to verify what the latest release is and use that value instead of 3.7.1
.
bucket
(Optional, string)The name of the S3 bucket to fallback to if the CACHE_BUCKET_NAME
environment variable is not set in the CI host. Used by save_cache
and restore_cache
.
To run the linter and tests:
make lint
make test
README.md
and to update the CHANGELOG.md
according to the <!-- instructions -->
to prepare it for a new release.CHANGELOG.md
section corresponding to the new version as description. This will have the side effect of creating a git tag
too, which is all we need for the new version to be available.