Upgrade versions #975
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
| on: | |
| push: | |
| branches: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| discover_modules: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| modules: ${{ steps.set-modules.outputs.modules }} | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Find all build.gradle.kts files and extract module paths | |
| id: set-modules | |
| run: | | |
| # Find all build.gradle.kts files except the root one | |
| MODULES=$(find . -type f -name "build.gradle.kts" -not -path "./build.gradle.kts" | sed -e 's|^./||' -e 's|/build.gradle.kts||' | sed -e 's|/|-|g' | awk '{print "\":" $0 "\""}' | tr '\n' ',' | sed 's/,$//') | |
| echo "modules=[${MODULES}]" >> $GITHUB_OUTPUT | |
| echo "Found modules: [${MODULES}]" | |
| build: | |
| needs: discover_modules | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| project: ${{ fromJson(needs.discover_modules.outputs.modules) }} | |
| fail-fast: false # Continue running other modules even if one fails | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: actions/[email protected] | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| cache: gradle | |
| - name: Build and test module | |
| run: ./gradlew ${{ matrix.project }}:build | |
| - name: Tag automerge branch | |
| if: ${{ github.event_name == 'pull_request' }} | |
| uses: TimonVS/[email protected] | |
| with: | |
| configuration-path: .github/pr-labeler.yml | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ORG_PUBLIC_REPO_RELEASE_TRIGGERING }} | |