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