File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed 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 ]
10
+ pull_request :
11
+ branches : [ main ]
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:2022-18.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@v2
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
You can’t perform that action at this time.
0 commit comments