This repository was archived by the owner on Dec 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
release/2025 #11
Merged
Merged
release/2025 #11
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* regenerate WPIlib project Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * create README.md Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * chore: update build.gradle dependancies and settings Configured the following dependancies: * spotless * gversion * junit jupiter api * junit platform launcher Created the following gradlew tasks/arguments: * installGitHooks (copies all files in /.scripts directory to /.git/hooks * -PprofileMode (starts a profiling server that can be attached to with a JMX client) Misc: * Added constant for minimum heap size (default 100 MB) * feat: create post-generation checklist in README.md * feat: create template LICENSE * feat: create AUTHORS.md template * feat: create auto signoff git hook Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * refactor: move classes to new gradle build path Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * feat: create template README.md Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * chore: create build gh workflow Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * chore: create fix-format gh workflow Create GitHub workflow for checking formating with spotless and then running spotless if necessary. Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * chore: create run-tests gh workflow Create GitHub workflow for running all robot tests Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * chore: add gversion build files to .gitignore The BuildConstants class generated by gversion should be ignored Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * Delete src/main/java/org/frc6423/robot/BuildConstants.java Signed-off-by: Dasun L. Abeykoon <Dasun20202020@hotmail.com> * docs: remove unused assets Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * chore: update fix-format.yml gh workflow Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * chore: fix run-tests.yml gh workflow Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * chore: fix all workflows by declaring name Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> * chore: final fix for fix-format.yml Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> --------- Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com> Signed-off-by: Dasun L. Abeykoon <Dasun20202020@hotmail.com>
* feat: create Tracer.java util class
Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>
* feat: create CommandRobot.java driver class
{@link CommandRobot} is an extension of {@link TimedRobot}
*
* <p>The {@link CommandRobot} class is intendended to subclassed by a
user creating a Robot Program
*
* <p>The {@link CommandScheduler} is automatically called and traced by
{@link Tracer} every period
*
* <p>Abstract method getAutonomousCommand() is automatically scheduled
on autonomous initialization
*
* <p>Garbage collector automatically called every 5 seconds
*
* @see wpilibsuite/allwpilib#5939
* @see {@link TimedRobot}
Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>
* feat: create TestUtil.java utils class
heavily inspired by FRC 1155's TestingUtils.java
Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>
* feat: replace generated robot program with CommandBased implementation
Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>
* chore: manual declare junit testruntime deps
Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>
* feat: create Robot Program test
Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>
---------
Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>
Signed-off-by: Dasun L. Abeykoon <Dasun20202020@hotmail.com>
Comment on lines
+11
to
+36
| runs-on: ubuntu-latest | ||
| continue-on-error: true | ||
| steps: | ||
| - name: checkout repository | ||
| uses: actions/checkout@v2 | ||
| - name: init Java | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| distribution: "temurin" | ||
| java-version: "17" | ||
| - name: Grant executive perms | ||
| run: chmod +x gradlew | ||
| - name: Check formatting | ||
| id: formatting | ||
| run: ./gradlew spotlessCheck | ||
| - name: Format Code | ||
| if: ${{ failure() && steps.formatting.conclusion == 'failure'}} | ||
| run: ./gradlew spotlessApply | ||
| - name: Commit and Push formatted Code | ||
| if: ${{ failure() && steps.formatting.conclusion == 'failure'}} | ||
| run: | | ||
| git config --global user.name 'github-actions' | ||
| git config --global user.email 'github-actions@github.com' | ||
| git add . | ||
| git commit -m "auto generated" | ||
| git push |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines
+11
to
+24
| runs-on: ubuntu-latest | ||
| continue-on-error: true | ||
| steps: | ||
| - name: checkout repository | ||
| uses: actions/checkout@v3 | ||
| - name: init Java | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| distribution: "temurin" | ||
| java-version: "17" | ||
| - name: Grant executive perms | ||
| run: chmod +x gradlew | ||
| - name: Run robot tests | ||
| run: ./gradlew test No newline at end of file |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Contributor
Author
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.
Create another branch from release/2025 with permission changes for all workflows and then create a PR
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
final 2025 changes