feat: add an arm hardware method for getting pivot motor velocity #99
Workflow file for this run
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: | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - name: checkout repository | |
| uses: actions/checkout@v2 | |
| - name: init Java | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: "temurin" | |
| java-version: "17" | |
| - name: Grant executive perms | |
| run: chmod +x gradlew | |
| - name: Check formatting | |
| id: formatting | |
| run: ./gradlew spotlessCheck | |
| - name: Format Code | |
| if: ${{ failure() && steps.formatting.conclusion == 'failure'}} | |
| run: ./gradlew spotlessApply | |
| - name: Commit and Push formatted Code | |
| if: ${{ failure() && steps.formatting.conclusion == 'failure'}} | |
| run: | | |
| git config --global user.name 'github-actions' | |
| git config --global user.email '[email protected]' | |
| git add . | |
| git commit -m "auto generated" | |
| git push | |
| - name: Build Robot Code | |
| run: ./gradlew build | |
| - name: Run Tests | |
| run: ./gradlew test |