-
Couldn't load subscription status.
- Fork 814
Add caching for the Mill build tool #819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds caching support for the Mill build tool, expanding the action’s compatibility with popular JVM build tools.
- Adds Mill as a supported package manager with appropriate cache paths and file patterns in the source code.
- Introduces tests for Mill caching behaviors (error throwing, cache restoration consistency, etc.).
- Updates the documentation and end-to-end workflow to include examples and tests for Mill caching.
Reviewed Changes
Copilot reviewed 5 out of 9 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/cache.ts | Adds Mill caching support to the PackageManager interface and supported array. |
| tests/cache.test.ts | Implements unit tests to verify Mill caching behavior. |
| README.md | Updates docs to include Mill as a supported package manager and usage examples. |
| .github/workflows/e2e-cache.yml | Adds e2e test workflow steps for saving/restoring Mill cache across OSes. |
Files not reviewed (4)
- tests/cache/mill/.gitignore: Language not supported
- tests/cache/mill/.mill-version: Language not supported
- tests/cache/mill/build.sc: Language not supported
- tests/cache/mill/mill: Language not supported
| exit 1 | ||
| fi | ||
| - name: Check files to cache on ubuntu-latest | ||
| if: matrix.os == 'ubuntu-latest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied these patterns from above and notice a potential bug.
The matrix defines ubuntu-22.04 but the conditional here is still set to ubuntu-latest. I imagine this was not intentional. Is there a reason to pin to 22.04? If not, I'd vote reverting back to ubuntu-latest all over.
Description:
Similar to Gradle, Maven, and sbt, I am hoping to see Mill cache support.
Mill is becoming a popular JVM build tool so I hope this is a welcome addition.
I have not contributed to this project before so please let me know if I missed anything!
Speaking of, how do I run automated tests on this branch?
Check list: