Bump Gradle to 9.1.0 (#149) #250
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: Module Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ '*' ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| compiler-plugin-tests: | |
| name: Compiler Plugin Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 21 | |
| cache: 'gradle' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build stability-compiler | |
| run: ./gradlew :stability-compiler:build --no-daemon --stacktrace | |
| - name: Run stability-compiler tests | |
| run: ./gradlew :stability-compiler:test --no-daemon --stacktrace | |
| - name: Upload test results | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: compiler-test-results | |
| path: stability-compiler/build/reports/tests/ | |
| compiler-tests: | |
| name: Compiler Tests (FIR/IR Dumps) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 21 | |
| cache: 'gradle' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build compiler-tests | |
| run: ./gradlew :compiler-tests:build --no-daemon --stacktrace | |
| - name: Run compiler-tests | |
| run: ./gradlew :compiler-tests:test --no-daemon --stacktrace | |
| - name: Upload test results | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: compiler-tests-results | |
| path: compiler-tests/build/reports/tests/ | |
| runtime-tests: | |
| name: Runtime Module Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 21 | |
| cache: 'gradle' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build stability-runtime | |
| run: ./gradlew :stability-runtime:build --no-daemon --stacktrace | |
| - name: Run JVM tests | |
| run: ./gradlew :stability-runtime:jvmTest --no-daemon --stacktrace | |
| - name: Upload test results | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: runtime-test-results | |
| path: stability-runtime/build/reports/tests/ | |
| gradle-plugin-tests: | |
| name: Gradle Plugin Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 21 | |
| cache: 'gradle' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build stability-gradle | |
| run: ./gradlew :stability-gradle:build --no-daemon --stacktrace | |
| - name: Run stability-gradle tests | |
| run: ./gradlew :stability-gradle:test --no-daemon --stacktrace | |
| - name: Upload test results | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: gradle-plugin-test-results | |
| path: stability-gradle/build/reports/tests/ | |
| ide-plugin-verify: | |
| name: IDE Plugin Verify | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 21 | |
| cache: 'gradle' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Publish stability-runtime to Maven Local | |
| run: ./gradlew :stability-runtime:publishToMavenLocal -x test --no-daemon --stacktrace -PRELEASE_SIGNING_ENABLED=false | |
| - name: Build IDE plugin (standalone with Kotlin 2.3.0) | |
| working-directory: compose-stability-analyzer-idea | |
| run: ../gradlew clean buildPlugin --no-daemon --stacktrace | |
| - name: Verify plugin compatibility | |
| working-directory: compose-stability-analyzer-idea | |
| run: ../gradlew verifyPlugin --no-daemon --stacktrace | |
| - name: Upload verification results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: plugin-verification-results | |
| path: compose-stability-analyzer-idea/build/reports/pluginVerifier/ | |
| lint-tests: | |
| name: Lint Module Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 21 | |
| cache: 'gradle' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build stability-lint | |
| run: ./gradlew :stability-lint:build --no-daemon --stacktrace | |
| - name: Run stability-lint tests | |
| run: ./gradlew :stability-lint:test --no-daemon --stacktrace | |
| - name: Upload test results | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: lint-test-results | |
| path: stability-lint/build/reports/tests/ |