Skip to content

Conversation

@taojintianxia
Copy link
Contributor

No description provided.

uses: actions/cache@v2
with:
path: ~/.m2/repository
key: shardingsphere-it-cache-${{ github.sha }}
Copy link
Member

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?

Copy link
Contributor Author

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 }}
Copy link
Member

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.

Copy link
Contributor Author

@taojintianxia taojintianxia Aug 18, 2022

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') }}

@TeslaCN TeslaCN requested a review from terrymanu August 18, 2022 10:39
Copy link
Member

@terrymanu terrymanu left a 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

@taojintianxia
Copy link
Contributor Author

test on my own repository as followings :

  1. checkout a new branch checkstyle-test and set the on push branch includ checkstyle-test
  2. remove a period in java doc in a Java class
  3. push the change to branch checkstyle-test

image

@terrymanu terrymanu added this to the 5.1.3 milestone Aug 18, 2022
@terrymanu terrymanu merged commit 0bce70a into apache:master Aug 18, 2022
@taojintianxia taojintianxia deleted the add-checkstyle-action branch August 18, 2022 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants