This repository was archived by the owner on Jul 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +77
-22
lines changed Expand file tree Collapse file tree 4 files changed +77
-22
lines changed Original file line number Diff line number Diff line change 1+ * @ FRCTeam3255/code-reviewers
Original file line number Diff line number Diff line change 1+ # This is a basic workflow to build robot code.
2+
3+ name : CI
4+
5+ # Controls when the action will run. Triggers the workflow on push or pull request
6+ # events but only for the main branch.
7+ on :
8+ push :
9+ branches : [ main, qa ]
10+ pull_request :
11+ branches : [ main, qa ]
12+
13+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+ jobs :
15+ # This workflow contains a single job called "build"
16+ build :
17+ # The type of runner that the job will run on
18+ runs-on : ubuntu-latest
19+
20+ # This grabs the WPILib docker container
21+ container : wpilib/roborio-cross-ubuntu:2024-22.04
22+
23+ # Steps represent a sequence of tasks that will be executed as part of the job
24+ steps :
25+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+ - uses : actions/checkout@v4
27+
28+ # Grant execute permission for gradlew
29+ - name : Grant execute permission for gradlew
30+ run : chmod +x gradlew
31+
32+ # Runs a single command using the runners shell
33+ - name : Compile and run tests on robot code
34+ run : ./gradlew build
35+
36+ # Runs a single command using the runners shell
37+ - name : Simulate robot code
38+ run : |
39+ set +e
40+ (
41+ timeout --preserve-status 10s ./gradlew simulateJava
42+ )
43+ if [ $? -eq 143 ]; then
44+ echo 'Simulation SUCCESS!'
45+ exit 0
46+ else
47+ echo 'Simulation FAILED!'
48+ exit 1
49+ fi
Original file line number Diff line number Diff line change 1- {
2- // Use IntelliSense to learn about possible attributes.
3- // Hover to view descriptions of existing attributes.
4- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5- "version" : " 0.2.0" ,
6- "configurations" : [
7-
8- {
9- "type" : " wpilib" ,
10- "name" : " WPILib Desktop Debug" ,
11- "request" : " launch" ,
12- "desktop" : true ,
13- },
14- {
15- "type" : " wpilib" ,
16- "name" : " WPILib roboRIO Debug" ,
17- "request" : " launch" ,
18- "desktop" : false ,
19- }
20- ]
21- }
1+ {
2+ // Use IntelliSense to learn about possible attributes.
3+ // Hover to view descriptions of existing attributes.
4+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+ "version" : " 0.2.0" ,
6+ "configurations" : [
7+
8+ {
9+ "type" : " wpilib" ,
10+ "name" : " WPILib Desktop Debug" ,
11+ "request" : " launch" ,
12+ "desktop" : true ,
13+ },
14+ {
15+ "type" : " wpilib" ,
16+ "name" : " WPILib roboRIO Debug" ,
17+ "request" : " launch" ,
18+ "desktop" : false ,
19+ }
20+ ]
21+ }
Original file line number Diff line number Diff line change 2525 }
2626 },
2727 ],
28- "java.test.defaultConfig" : " WPIlibUnitTests"
28+ "java.test.defaultConfig" : " WPIlibUnitTests" ,
29+ "editor.formatOnSave" : true ,
30+ "editor.tabSize" : 2 ,
31+ "editor.insertSpaces" : true ,
32+ "editor.detectIndentation" : false ,
33+ "java.debug.settings.onBuildFailureProceed" : true
2934}
You can’t perform that action at this time.
0 commit comments