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

Inline gradle-wrapper-validation job. #2129

Merged
2 commits merged into from
Jan 29, 2024
Merged

Inline gradle-wrapper-validation job. #2129

2 commits merged into from
Jan 29, 2024

Conversation

brettchabot
Copy link
Collaborator

Just execute gradle-wrapper-validation in gradle-emulator-tests to save overhead of running a separate job with checkout.

Also update to actions/checkout@v4

Just execute gradle-wrapper-validation in gradle-emulator-tests
to save overhead of running a separate job with checkout.
- name: Install Java 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uses: gradle/wrapper-validation-action@v1
uses: gradle/wrapper-validation-action@v2

https://github.com/gradle/wrapper-validation-action/releases/tag/v2.0.0-rc.1 released few minutes ago.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it safer to use only stable versions?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up to you, it's only minor and patch bumps apart from the Node 20 change.
I wouldn't expect issues from this action, Gradle's RCs are pretty stable usually and final release won't require any changes.

Some examples where it's working fine:
ReactiveCircus/android-emulator-runner#374
junit-pioneer/junit-pioneer#804

build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test: job's checkout is still v3 I think, see warnings:
https://github.com/android/android-test/actions/runs/7702474927?pr=2129

@brettchabot brettchabot force-pushed the inline_gradle_wrapper branch from bbd6bb3 to 1dd2af5 Compare January 29, 2024 21:36
@copybara-service copybara-service bot closed this pull request by merging all changes into main in cf3dfe9 Jan 29, 2024
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.

2 participants