Skip to content

Commit

Permalink
Merge pull request #5 from BLlakers/feature/4-githib-actions
Browse files Browse the repository at this point in the history
Feature/4 github actions
  • Loading branch information
robotdirtbag authored Jan 11, 2025
2 parents 65d0d11 + 60f20c8 commit e044659
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
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
5 changes: 5 additions & 0 deletions README.md
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)
26 changes: 26 additions & 0 deletions src/test/java/frc/robot/SmokeTest.java
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);
}
}

0 comments on commit e044659

Please sign in to comment.