Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/4 github actions #5

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}