generated from Team-Optix-3749/Robot-Code-Template
-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (26 loc) · 831 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build Check
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build Check
runs-on: ubuntu-latest
container: wpilib/roborio-cross-ubuntu:2025-24.04
steps:
- uses: actions/checkout@v4
# prevents Dubious Ownership err
- name: Add repository to git safe directories
run: git config --global --add safe.directory $GITHUB_WORKSPACE
# Grant execute permission for gradlew
- name: Grant execute permission for gradlew
run: chmod +777 ./gradlew
# CHANGE THIS TO DIRECTORY PATH
working-directory: ./Team-3749-2025
# Runs a single command using the runners shell
- name: Compile and run tests on robot code
run: ./gradlew build
# CHANGE THIS TO DIRECTORY PATH
working-directory: ./Team-3749-2025