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

Update Github action workflow #79

Open
wants to merge 11 commits into
base: full-template
Choose a base branch
from

Conversation

NereusWB922
Copy link

@NereusWB922 NereusWB922 commented Feb 19, 2024

Fixes #66

Bumps version:

  • actions/checkout: master -> v4
  • gradle/wrapper-validation-action: v1 -> v2
  • actions/setup-java: v1 -> v4

Changes made:

  • Include setup-gradle action (for optimal execution, refer to gradle official)
  • Refactor IO redirection test workflow to reduce code duplication

@NereusWB922 NereusWB922 changed the base branch from master to full-template February 19, 2024 14:26
@damithc
Copy link
Collaborator

damithc commented Feb 27, 2024

@NereusWB922 Thanks for this PR. Is this an urgent change or can we delay it till next semester? This branch will be put into use very soon (when CS2113 tP starts, so we need to decide now)

@NereusWB922
Copy link
Author

@NereusWB922 Thanks for this PR. Is this an urgent change or can we delay it till next semester? This branch will be put into use very soon (when CS2113 tP starts, so we need to decide now)

I don't think it's urgent since the current version isn't causing any issues. We can delay it until next semester without any problems.

@damithc
Copy link
Collaborator

damithc commented Mar 1, 2024

@se-edu/tech-team-level1 For your review ...

damithc and others added 8 commits July 11, 2024 16:52
Let's add the following features to make this a minimal project
template that students can use to start their project.
* Gradle support, a basic build script
* a skeleton JUnit test
* a basic CheckStyle configuration
* a basic I/O test setup
* support for GitHub actions
* documentation skeletons inside the docs folder

In addition, let's remove the Gradle and JavaFX tutorials as they are
not integral to a project template.
The latest version of Checkstyle is 10.2. At the same time, the
checkstyle.xml file is slightly disorganised.

Let's update the Checkstyle version in build.gradle, replace the
checkstyle.xml file with the one used in AddressBook 3 and add a
suppressions.xml file to support suppression of checks for test code
for developers intending to use JUnit.
The oss-generic link for the coding standard is obsolete. At the same
time, the description vaguely refers to a module.

Let's change the coding standard link to the one used by SE-EDU and
remove the reference to the module.
The latest minor release for Gradle 6 is 6.9.2. The latest version
of the shadow plugin that is compatible with Gradle 6.9.2 is 6.1.0.

Let's upgrade to Gradle 6.9.2 and shadow 6.1.0.
The latest version of Gradle is 7.4.2. The mainClassName property has
been deprecated and replaced with the mainClass property. The latest
shadow version compatible with Gradle 7.4.2 is 7.1.2.

Let's upgrade to Gradle 7.4.2, resolve the deprecation and upgrade to
shadow 7.1.2.
@damithc
Copy link
Collaborator

damithc commented Jul 31, 2024

@NereusWB922 Looks like this PR got messed up after the target branch was rebased. Perhaps close this PR and PR again?

@NereusWB922 NereusWB922 force-pushed the 66-update-github-actions-workflow branch from e3fb8a7 to 31aff38 Compare August 3, 2024 06:07
@NereusWB922
Copy link
Author

@damithc Hi Prof, just rebased this branch onto the updated target branch.


- name: Merge to master
run: git checkout --progress --force ${{ github.sha }}
uses: actions/checkout@v4
Copy link
Collaborator

Choose a reason for hiding this comment

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

@NereusWB922 does the behavior remains the same here?

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.

4 participants