-
Notifications
You must be signed in to change notification settings - Fork 87
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
chore: update GitHub actions workflows #322
base: master
Are you sure you want to change the base?
Conversation
strategy: | ||
matrix: | ||
java: ['11'] | ||
env: | ||
WORKSPACE: ${{ github.workspace }} | ||
GRADLE_OPTS: -Xmx1500m -Dfile.encoding=UTF-8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 |
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 gradle/actions/setup-gradle
action performs efficient caching of Gradle User Home so actions/cache
is not needed:
https://github.com/gradle/actions/blob/af6e5767241073b8ab20cc8cf7e95ec63fadc160/docs/setup-gradle.md#why-use-the-setup-gradle-action
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: gradle/wrapper-validation-action@v1 | ||
- uses: gradle/actions/wrapper-validation@v3 |
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 gradle/actions/wrapper-validation
action replaces gradle/wrapper-validation-action
.
Reference:
https://github.com/gradle/wrapper-validation-action
@@ -9,25 +9,30 @@ on: | |||
jobs: | |||
build: | |||
runs-on: ubuntu-latest | |||
permissions: | |||
checks: write | |||
contents: read |
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.
These permissions are needed for the scacap/action-surefire-report
action to work properly
Update the GitHub actions workflows to use the latest version of multiple actions, including
actions/checkout
,actions/setup-java
, andactions/cache
, :https://github.com/actions/checkout/tags
https://github.com/actions/setup-java/tags
https://github.com/actions/cache?tab=readme-ov-file#v4