Organizing Branches #3
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: wpilib/roborio-cross-ubuntu:2024-22.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 | |
working-directory: ./Team-3749-2024 | |
# Runs a single command using the runners shell | |
- name: Compile and run tests on robot code | |
run: ./gradlew build | |
working-directory: ./Team-3749-2024 |