Bring the ice-demos gradle in line with the ice repo gradle. (#654) #465
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 | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| # The branches below must be a subset of the branches above | |
| branches: ["main"] | |
| jobs: | |
| rewrite: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "oracle" | |
| java-version: "17" | |
| - name: Run rewrite linter | |
| timeout-minutes: 20 | |
| working-directory: java | |
| shell: pwsh | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| Get-ChildItem -Recurse -Depth 2 -Filter gradlew | ForEach-Object { | |
| Push-Location $_.DirectoryName | |
| Write-Host "Building in $($_.DirectoryName)..." | |
| & ./gradlew rewriteDryRun --no-parallel --no-configuration-cache | |
| if ($LASTEXITCODE -ne 0) { | |
| throw "Build failed in $($_.DirectoryName)" | |
| } | |
| Pop-Location | |
| } |