-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Add : add a new action only focus on checkstyle check #20269
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
Add : add a new action only focus on checkstyle check #20269
Conversation
| uses: actions/cache@v2 | ||
| with: | ||
| path: ~/.m2/repository | ||
| key: shardingsphere-it-cache-${{ github.sha }} |
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.
Why the key is IT?
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 was thinking about how to caching the plugin related but not the rest dependencies.
this is a good refactor point.
| uses: actions/cache@v2 | ||
| with: | ||
| path: ~/.m2/repository | ||
| key: shardingsphere-checkstyle-check-cache-${{ github.sha }} |
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.
The cache will always be absent if using github.sha here. It will always use the restore key.
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.
how about followings key. this key is better than the previous key+restore key combination.
key: ${{ runner.os }}-checkstyle-check-${{ hashFiles('.github/workflows/checkstyle-check.yml') }}
terrymanu
left a comment
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.
checkstyle-and-apache-rat in it.yml has already existed

No description provided.