diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ff7cce9..b268b2f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,8 +17,16 @@ jobs: container: wpilib/roborio-cross-ubuntu:2025-22.04 # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 + - name: reset permissions + run: sudo chown -R $(whoami) . + - name: initialize common + run: git submodule init + - name: add common + run: git submodule add https://github.com/SubZero-Robotics/2025-CommandRobot + - name: update common + run: git submodule update # Declares the repository safe and not under dubious ownership. - name: Add repository to git safe directories run: git config --global --add safe.directory $GITHUB_WORKSPACE @@ -27,4 +35,7 @@ jobs: run: chmod +x gradlew # Runs a single command using the runners shell - name: Compile and run tests on robot code + run: ./gradlew build + + diff --git a/src/main/cpp/subsystems/MAXSwerveModule.cpp b/src/main/cpp/subsystems/MAXSwerveModule.cpp index 0594adc..83b1b7d 100644 --- a/src/main/cpp/subsystems/MAXSwerveModule.cpp +++ b/src/main/cpp/subsystems/MAXSwerveModule.cpp @@ -6,7 +6,7 @@ #include -#include "Subsystems/Configs.h" +#include "subsystems/Configs.h" using namespace rev::spark; @@ -64,4 +64,4 @@ void MAXSwerveModule::SetDesiredState( m_desiredState = desiredState; } -void MAXSwerveModule::ResetEncoders() { m_drivingEncoder.SetPosition(0); } \ No newline at end of file +void MAXSwerveModule::ResetEncoders() { m_drivingEncoder.SetPosition(0); }