Add display #893
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: Java iot3-mobility | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'corretto' | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| - name: Java iot3-mobility test | |
| working-directory: java/iot3 | |
| run: ./gradlew :mobility:test | |
| - name: Publish test failure results | |
| uses: actions/upload-artifact@v4 | |
| if: failure() # upload only if tests fail | |
| with: | |
| name: Java iot3-mobility test-failure-results | |
| path: java/iot3/mobility/build/reports/tests/test/ | |
| - name: Java iot3-mobility build | |
| working-directory: java/iot3 | |
| run: ./gradlew :mobility:build -x test # skip re-running tests |