Merge pull request #518 from Northeastern-Electric-Racing/498-endpoin… #1472
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| - 'feature/**' | |
| jobs: | |
| run-build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Docker Compose | |
| run: | | |
| sudo apt-get -y update | |
| sudo apt-get -y install docker-compose | |
| - name: Build Docker Compose | |
| working-directory: compose | |
| run: | | |
| if ! docker-compose build; then | |
| echo "Docker Compose build failed." | |
| exit 1 # This will cause the workflow to fail | |
| fi |