Renames file that causes collision in case-insensitive file systems #60
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
| # This workflow will build and test all Gradle-migrated projects in specs-java-libs every day at midnight | |
| # It will also run on every push and pull request | |
| name: nightly | |
| on: | |
| push: | |
| workflow_dispatch: | |
| permissions: | |
| checks: write | |
| contents: write | |
| env: | |
| JAVA_VERSION: 17 | |
| jobs: | |
| build-gradle-projects: | |
| name: Build & Test Gradle Projects Sequentially | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout specs-java-libs | |
| uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ env.JAVA_VERSION }} | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| gradle-version: current | |
| dependency-graph: generate-and-submit | |
| - name: Build and test all Gradle projects sequentially | |
| run: | | |
| projects=( | |
| AntTasks | |
| AsmParser | |
| CommonsCompressPlus | |
| CommonsLangPlus | |
| GitlabPlus | |
| GitPlus | |
| Gprofer | |
| GsonPlus | |
| GuiHelper | |
| JacksonPlus | |
| JadxPlus | |
| JavaGenerator | |
| jOptions | |
| JsEngine | |
| LogbackPlus | |
| MvelPlus | |
| SlackPlus | |
| SpecsUtils | |
| SymjaPlus | |
| tdrcLibrary | |
| XStreamPlus | |
| ) | |
| failed=() | |
| for project in "${projects[@]}"; do | |
| echo "\n===== Building and testing $project =====" | |
| cd "$project" | |
| if ! gradle build; then | |
| echo "[ERROR] $project failed to build or test" | |
| failed+=("$project") | |
| fi | |
| cd - | |
| done | |
| if [ ${#failed[@]} -ne 0 ]; then | |
| echo "\nThe following projects failed: ${failed[*]}" | |
| exit 1 | |
| fi | |
| env: | |
| GITHUB_DEPENDENCY_GRAPH_ENABLED: false | |
| - name: Publish Test Reports | |
| uses: mikepenz/action-junit-report@v4 | |
| if: always() | |
| with: | |
| report_paths: '**/build/test-results/test/TEST-*.xml' | |
| summary: true |