-
Notifications
You must be signed in to change notification settings - Fork 551
[#66] Update GitHub Actions workflow #80
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
[#66] Update GitHub Actions workflow #80
Conversation
|
@zhenglong1603 Did you do any testing to see if everything works? |
|
@damithc, |
|
@zhenglong1603 You can also try the following: Copy over your clone to a new folder. |
|
Hi Prof @damithc, However, after pushing the code to the GitHub repository, the GitHub Actions workflow failed. I think it’s because JavaFX isn’t accounted in the workflow configuration. Do we need to tweak the checks to account for JavaFX in the workflow?
|
|
@zhenglong1603 can you share the link to the failed PR workflow? |
|
Hi Prof @damithc, The link would be https://github.com/zhenglong1603/duke-testing/actions I compared with the AB3 workflow. I believe its because in AB3 workflow file, it just runs I suspect this wasn’t an issue earlier because Duke doesnt include any JavaFX dependencies so the tests will run well without triggering any GUI issue. Given that Duke doesn't have a GUI by default whereas AB3 does, would seek your opinion on this.
|
|
@zhenglong1603 Thanks for checking. Can you try without the GUI code (e.g., an earlier version of the iP)? |
|
Hi Prof @damithc, I've added an earlier version of the IP code as you suggested. Below are the screenshots of it working both locally and after generating the JAR file. The GitHub Actions workflow also ran successfully. I did notice a message saying "dos2unix not found". I tested adding dos2unix installation to the workflow, and it resolved the warning. However, since everything worked fine even without it, I'm unsure whether it's necessary to include it since I think its a minor issue. Might need your opinion on it.
|
Good work, @zhenglong1603 |
|
@damithc |
|
Thanks for this fix, @zhenglong1603 💯 |












Update GitHub Actions workflow to latest versions
This PR updates the CI workflow with the following changes:
Upgrades the Gradle wrapper validation action from gradle/wrapper-validation-action@v1 to gradle/actions/wrapper-validation@v3.
Updates the Java setup step from actions/setup-java@v1 to actions/setup-java@v4, using JDK 17 with the jdk+fx package.
Installs dos2unix on both Ubuntu (apt-get) and macOS (brew) runners to normalize line endings and prevent issues with shell scripts across platforms.
These updates ensure the workflow uses the latest stable GitHub Actions and Java versions, improves cross-platform compatibility, and enhances security and maintainability.