Skip to content

Commit ed7716b

Browse files
authored
Create main.yml
1 parent 49c546a commit ed7716b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

0 commit comments

Comments
 (0)