From 45478cd70d66a07d1e44270db16e38f8616662b4 Mon Sep 17 00:00:00 2001 From: cohensh Date: Sat, 20 Jan 2024 11:32:13 -0500 Subject: [PATCH 1/6] Create super-linter.yml --- .github/workflows/super-linter.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/super-linter.yml diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml new file mode 100644 index 0000000..6eb13be --- /dev/null +++ b/.github/workflows/super-linter.yml @@ -0,0 +1,29 @@ +# This workflow executes several linters on changed files based on languages used in your code base whenever +# you push a code or open a pull request. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/github/super-linter +name: Lint Code Base + +on: + push: + branches-ignore: [ "Master" ] + pull_request: + branches: [ "Master" ] +jobs: + run-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + # Full git history is needed to get a proper list of changed files within `super-linter` + fetch-depth: 0 + + - name: Lint Code Base + uses: github/super-linter@v4 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: "Master" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From bd3c3c1512dbcbd918c6ea3dc50ecdbe755ced4a Mon Sep 17 00:00:00 2001 From: Schuyler Cohen Date: Sat, 20 Jan 2024 11:47:56 -0500 Subject: [PATCH 2/6] Use slim version of super-linter --- .github/workflows/super-linter.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index 6eb13be..5cbeb58 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -22,8 +22,10 @@ jobs: fetch-depth: 0 - name: Lint Code Base - uses: github/super-linter@v4 + uses: github/super-linter/slim@v5 env: VALIDATE_ALL_CODEBASE: false + # If you set any VALIDATE_* to true, all others will be false + VALIDATE_JAVA: true DEFAULT_BRANCH: "Master" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From bc25b003930ee487697072138f35c14e7bb2558f Mon Sep 17 00:00:00 2001 From: Schuyler Cohen Date: Sat, 20 Jan 2024 11:56:39 -0500 Subject: [PATCH 3/6] Bad commit --- src/main/java/frc/robot/Robot.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/frc/robot/Robot.java b/src/main/java/frc/robot/Robot.java index a57e587..20de67c 100644 --- a/src/main/java/frc/robot/Robot.java +++ b/src/main/java/frc/robot/Robot.java @@ -30,6 +30,7 @@ public void robotInit() { // Instantiate our RobotContainer. This will perform all our button bindings, and put our // autonomous chooser on the dashboard. m_robotContainer = new RobotContainer(); + This doesnt work } /** From 3cacc8de2a4501e42df96fcb3e384e5c85e3e70b Mon Sep 17 00:00:00 2001 From: Schuyler Cohen Date: Sat, 20 Jan 2024 12:00:45 -0500 Subject: [PATCH 4/6] Good commit --- src/main/java/frc/robot/Robot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/frc/robot/Robot.java b/src/main/java/frc/robot/Robot.java index 20de67c..bd38c5b 100644 --- a/src/main/java/frc/robot/Robot.java +++ b/src/main/java/frc/robot/Robot.java @@ -30,7 +30,7 @@ public void robotInit() { // Instantiate our RobotContainer. This will perform all our button bindings, and put our // autonomous chooser on the dashboard. m_robotContainer = new RobotContainer(); - This doesnt work + System.out.println("Hello world"); } /** From 734f686988a2a7a5190178d35e3c0bfae5b3fc2a Mon Sep 17 00:00:00 2001 From: Schuyler Cohen Date: Sat, 20 Jan 2024 12:49:01 -0500 Subject: [PATCH 5/6] Add compile java action --- .github/workflows/compile-java.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/compile-java.yml diff --git a/.github/workflows/compile-java.yml b/.github/workflows/compile-java.yml new file mode 100644 index 0000000..91e5fa2 --- /dev/null +++ b/.github/workflows/compile-java.yml @@ -0,0 +1,22 @@ +name: compile-java + +on: + push: + branches-ignore: [ "Master" ] + pull_request: + branches: [ "Master" ] +jobs: + compile: + runs-on: ubuntu-latest + + container: wpilib/roborio-cross-ubuntu:2024-22.04 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Compile Java + run: | + chmod +x ./gradlew + ./gradlew build + shell: bash From a3629c559d6f531c9b68df8614e385bf0e92b667 Mon Sep 17 00:00:00 2001 From: Schuyler Cohen Date: Sat, 20 Jan 2024 13:06:22 -0500 Subject: [PATCH 6/6] Compile error --- gradlew | 0 src/main/java/frc/robot/Robot.java | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 gradlew diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/src/main/java/frc/robot/Robot.java b/src/main/java/frc/robot/Robot.java index bd38c5b..d0d1b13 100644 --- a/src/main/java/frc/robot/Robot.java +++ b/src/main/java/frc/robot/Robot.java @@ -30,7 +30,7 @@ public void robotInit() { // Instantiate our RobotContainer. This will perform all our button bindings, and put our // autonomous chooser on the dashboard. m_robotContainer = new RobotContainer(); - System.out.println("Hello world"); + System.out.println("Hello world"s); } /**