This repository was archived by the owner on May 12, 2026. It is now read-only.
build(deps): bump nu.studer.jooq from 9.0 to 10.2.1 in /prime-router #12942
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: SonarCloud | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "prime-router/**" | |
| - "frontend-react/**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| # These are for CI and not credentials of any system | |
| DB_USER: prime | |
| DB_PASSWORD: changeIT! | |
| jobs: | |
| sonarcloud: | |
| if: github.actor != 'dependabot[bot]' | |
| name: "SonarCloud/CodeQL scan" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: ["java-kotlin"] | |
| steps: | |
| - name: Increase swapfile | |
| run: | | |
| sudo swapoff -a | |
| sudo fallocate -l 15G /mnt/swapfile | |
| sudo chmod 600 /mnt/swapfile | |
| sudo mkswap /mnt/swapfile | |
| sudo swapon /mnt/swapfile | |
| sudo swapon --show | |
| - name: "Check out everything" | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get branch name | |
| id: branch-name | |
| uses: tj-actions/branch-names@5250492686b253f06fa55861556d1027b067aeb5 | |
| - name: "Get changed files with yaml" | |
| id: changed-files-yaml | |
| uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 | |
| with: | |
| files_yaml: | | |
| frontend: | |
| - 'frontend-react/**' | |
| backend: | |
| - 'prime-router/**' | |
| - name: Set up JDK 21 | |
| if: steps.changed-files-yaml.outputs.backend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true' | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 | |
| with: | |
| java-version: "21" | |
| distribution: "temurin" | |
| cache: "gradle" | |
| - name: Gradle setup | |
| if: steps.changed-files-yaml.outputs.backend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true' | |
| uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Spin up build containers | |
| if: steps.changed-files-yaml.outputs.backend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true' | |
| working-directory: prime-router | |
| run: docker compose -f docker-compose.postgres.yml up -d | |
| - name: Initialize CodeQL | |
| if: steps.changed-files-yaml.outputs.backend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true' | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| - name: Build Prime Router Package | |
| if: steps.changed-files-yaml.outputs.backend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true' | |
| uses: ./.github/actions/retry | |
| with: | |
| timeout_minutes: 30 | |
| max_attempts: 2 | |
| retry_wait_seconds: 30 | |
| command: ./gradlew -Dorg.gradle.jvmargs="-Xmx6g" :prime-router:package -x fatjar | |
| shell: bash | |
| - name: Build Submissions Package | |
| if: steps.changed-files-yaml.outputs.backend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true' | |
| uses: ./.github/actions/build-submissions | |
| - name: Build Auth Package | |
| if: steps.changed-files-yaml.outputs.backend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true' | |
| uses: ./.github/actions/build-auth | |
| - name: Perform Java CodeQL Analysis | |
| if: steps.changed-files-yaml.outputs.backend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true' | |
| uses: github/codeql-action/analyze@v4 | |
| - name: Use Node.js with yarn | |
| if: steps.changed-files-yaml.outputs.frontend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true' | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f | |
| with: | |
| node-version-file: "frontend-react/.nvmrc" | |
| - name: Yarn | |
| if: steps.changed-files-yaml.outputs.frontend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true' | |
| run: yarn install | |
| working-directory: frontend-react | |
| - name: Frontend Coverage | |
| if: steps.changed-files-yaml.outputs.frontend_any_changed == 'true' || steps.branch-name.outputs.is_default == 'true' | |
| uses: ./.github/actions/retry | |
| with: | |
| timeout_minutes: 30 | |
| max_attempts: 2 | |
| retry_wait_seconds: 30 | |
| command: | | |
| cd frontend-react | |
| yarn run test:ci | |
| shell: bash | |
| - name: Run SonarCloud Scan main or full | |
| if: ( steps.changed-files-yaml.outputs.frontend_any_changed == 'true' && steps.changed-files-yaml.outputs.backend_any_changed == 'true' ) || steps.branch-name.outputs.is_default == 'true' | |
| uses: ./.github/actions/sonarcloud | |
| with: | |
| scan-level: default | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| sonar-token: ${{ secrets.SONAR_TOKEN }} | |
| - name: Run SonarCloud Scan frontened | |
| if: steps.changed-files-yaml.outputs.frontend_any_changed == 'true' && steps.changed-files-yaml.outputs.backend_any_changed == 'false' && steps.branch-name.outputs.is_default == 'false' | |
| uses: ./.github/actions/sonarcloud | |
| with: | |
| scan-level: frontend | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| sonar-token: ${{ secrets.SONAR_TOKEN }} | |
| - name: Run SonarCloud Scan backend | |
| if: steps.changed-files-yaml.outputs.frontend_any_changed == 'false' && steps.changed-files-yaml.outputs.backend_any_changed == 'true' && steps.branch-name.outputs.is_default == 'false' | |
| uses: ./.github/actions/sonarcloud | |
| with: | |
| scan-level: backend | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| sonar-token: ${{ secrets.SONAR_TOKEN }} |