diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..da8c19f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: FRC Team 2534 CI Pipeline +on: + push: + branches: + - main + - Dev + - Test + pull_request: +jobs: + build: + runs-on: ubuntu-22.04 + container: wpilib/roborio-cross-ubuntu:2025-22.04 + steps: + - uses: actions/checkout@v4 + - name: Add repository to git safe directories + run: git config --global --add safe.directory $GITHUB_WORKSPACE + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Compile and run tests on robot code + run: ./gradlew build \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..acaace7 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# BLlakers 2025 + +FRC Team #2534 + +![main workflow](https://github.com/BLlakers/2025_Official/actions/workflows/main.yml/badge.svg) \ No newline at end of file diff --git a/src/test/java/frc/robot/SmokeTest.java b/src/test/java/frc/robot/SmokeTest.java new file mode 100644 index 0000000..329859a --- /dev/null +++ b/src/test/java/frc/robot/SmokeTest.java @@ -0,0 +1,26 @@ +package frc.robot; + +import static org.junit.jupiter.api.Assertions.assertTrue; + +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +/** A smoke test to ensure JUnit and the test stage of our GitHub actions execute as expected */ +public class SmokeTest { + + @BeforeEach + public void setup() { + // noop + } + + @AfterEach + public void tearDown() { + // noop + } + + @Test + public void testSmoke() { + assertTrue(true); + } +}