File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ # This is a basic workflow to build robot code.
2+ name : CI
3+ # Controls when the action will run. Triggers the workflow on push or pull request
4+ # events but only for the main branch.
5+ on :
6+ push :
7+ branches : [ main ]
8+ pull_request :
9+ branches : [ main ]
10+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
11+ jobs :
12+ # This workflow contains a single job called "build"
13+ build :
14+ # The type of runner that the job will run on
15+ runs-on : ubuntu-22.04
16+ # This grabs the WPILib docker container
17+ container : wpilib/roborio-cross-ubuntu:2025-22.04
18+ # Steps represent a sequence of tasks that will be executed as part of the job
19+ steps :
20+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+ - uses : actions/checkout@v4
22+ # Declares the repository safe and not under dubious ownership.
23+ - name : Add repository to git safe directories
24+ run : git config --global --add safe.directory $GITHUB_WORKSPACE
25+ # Grant execute permission for gradlew
26+ - name : Grant execute permission for gradlew
27+ run : chmod +x gradlew
28+ # Runs a single command using the runners shell
29+ - name : Compile and run tests on robot code
30+ run : ./gradlew build
You can’t perform that action at this time.
0 commit comments