A caching plugin that can be invoked from your build script
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/bash-cache#v1.0.0
There are no configuration options for this plugin
To run the linter and tests:
docker-compose run --rm lint
docker-compose run --rm tests
- Fork the repo
- Make the changes
- Run the tests
- Commit and push your changes
- Send a pull request