Upgrade to latest geoserver 2.28.0-SNAPSHOT (ImageN replacing JAI) #122
Workflow file for this run
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
| # SonarCloud analysis specifically for pull requests from forked repositories | |
| name: SonarCloud QA (Fork PRs) | |
| on: | |
| pull_request_target: | |
| types: [opened, synchronize, reopened] | |
| paths: | |
| - ".github/workflows/sonarcloud.yaml" | |
| - ".github/workflows/sonarcloud-fork-pr.yaml" | |
| - "pom.xml" | |
| - "src/**" | |
| - "Makefile" | |
| - "config" | |
| - "acceptance_tests/**" | |
| - "ci/**" | |
| # cancel in-progress jobs or runs for this workflow for the same pr | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build and Analyze | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| # Only run this workflow for PRs from forked repositories | |
| if: github.event.pull_request.head.repo.full_name != github.repository | |
| steps: | |
| - name: Checkout PR | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
| submodules: recursive | |
| show-progress: 'false' | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| cache: 'maven' | |
| - name: Cache SonarCloud packages | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.sonar/cache | |
| key: ${{ runner.os }}-sonar | |
| restore-keys: ${{ runner.os }}-sonar | |
| - name: Analyze with Sonar | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| run: | | |
| ./mvnw verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ | |
| -Dcoverage \ | |
| -Dsonar.projectKey=geoserver_geoserver-cloud \ | |
| -Dsonar.organization=geoserver \ | |
| -Dmaven.javadoc.skip=true \ | |
| -ntp \ | |
| -T1C | |
| - name: Remove project jars from cached repository | |
| run: | | |
| rm -rf ~/.m2/repository/org/geoserver | |
| find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {} | |