Acceptance tests: upgrade python-geoservercloud #892
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 for main branch pushes and PRs from the same repository | |
| name: SonarCloud QA | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "release/**" | |
| paths: | |
| - ".github/workflows/sonarcloud.yaml" | |
| - ".github/workflows/sonarcloud-fork-pr.yaml" | |
| - "pom.xml" | |
| - "src/**" | |
| - "Makefile" | |
| - "config" | |
| - "acceptance_tests/**" | |
| - "ci/**" | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| # cancel in-progress jobs or runs for this workflow for the same pr or branch | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build and Analyze | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| # Only run this workflow for PRs from the same repository, not forks | |
| # For forks, the sonarcloud-fork-pr.yaml workflow will handle analysis | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| 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, if any | |
| 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 {} |