Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tylervz
Copy link

@tylervz tylervz commented Jun 21, 2024

Update the GitHub actions workflows to use the latest version of multiple actions, including actions/checkout, actions/setup-java, and actions/cache, :

https://github.com/actions/checkout/tags
https://github.com/actions/setup-java/tags
https://github.com/actions/cache?tab=readme-ov-file#v4

strategy:
matrix:
java: ['11']
env:
WORKSPACE: ${{ github.workspace }}
GRADLE_OPTS: -Xmx1500m -Dfile.encoding=UTF-8
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant