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 diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml new file mode 100644 index 0000000..5cbeb58 --- /dev/null +++ b/.github/workflows/super-linter.yml @@ -0,0 +1,31 @@ +# 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/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 }} 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 a57e587..d0d1b13 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(); + System.out.println("Hello world"s); } /**