-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (35 loc) · 1.32 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: CI Build
on: [push]
jobs:
ci-build:
runs-on: ubuntu-24.04
# Use the WPILib docker container
container: wpilib/roborio-cross-ubuntu:2025-24.04
env:
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF-8"
steps:
- uses: actions/checkout@v4
# Declare the repository safe
- name: Add repository to git safe directories
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Execute Gradle build
run: ./gradlew test
spotless-check:
runs-on: ubuntu-24.04
# Use the WPILib docker container
container: wpilib/roborio-cross-ubuntu:2025-24.04
env:
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF-8"
steps:
- uses: actions/checkout@v4
# Declare the repository safe
- name: Add repository to git safe directories
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Check formatting with Spotless
run: ./gradlew spotlessCheck