Skip to content

Commit a9e808d

Browse files
add github ci (tests gradle build)
1 parent fb7c914 commit a9e808d

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Gradle Build
2+
3+
on:
4+
push:
5+
branches: [ $default-branch ]
6+
pull_request:
7+
branches: [ $default-branch ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up JDK 11
15+
uses: actions/setup-java@v2
16+
with:
17+
java-version: '11'
18+
distribution: 'adopt'
19+
- name: Gradle Build
20+
run: ./gradlew build

src/main/kotlin/frc/robot/subsystems/DrivetrainSubsystem.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import edu.wpi.first.wpilibj2.command.SubsystemBase
1212
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard
1313
import frc.robot.Constants
1414
import kotlin.math.IEEErem
15+
import kotlin.math.abs
16+
import kotlin.math.min
1517

1618
/**
1719
* Drivetrain subsystem

0 commit comments

Comments
 (0)