-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from BLlakers/feature/4-githib-actions
Feature/4 github actions
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# BLlakers 2025 | ||
|
||
FRC Team #2534 | ||
|
||
![main workflow](https://github.com/BLlakers/2025_Official/actions/workflows/main.yml/badge.svg) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |