Advantage kit #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |