#29281: returning available models as object that includes 'name' and 'type' instead of just a list os strings #3276
This file contains 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: PR Check | |
on: | |
pull_request: | |
branches: | |
- master | |
types: | |
- opened | |
- synchronize | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }} | |
# Cancel any in-progress runs for the same branch/PR to prevent delays from changes during build | |
# On master and other branches run will set as pending. Any new builds requested will replace the pending build | |
cancel-in-progress: true | |
jobs: | |
initialize: | |
name: Initialize | |
uses: ./.github/workflows/reusable-initialize.yml | |
with: | |
incremental: true | |
build: | |
name: PR Build | |
needs: [ initialize ] | |
if: needs.initialize.outputs.found_artifacts == 'false' | |
uses: ./.github/workflows/reusable-ci-build.yml | |
with: | |
core-build: true | |
run-pr-checks: true | |
permissions: | |
contents: read | |
packages: write | |
test: | |
name: PR Test | |
needs: [ initialize,build ] | |
if: always() && !failure() && !cancelled() | |
uses: ./.github/workflows/reusable-ci-test.yml | |
with: | |
jvm_unit_test: ${{ needs.initialize.outputs.jvm_unit_test == 'true' }} | |
integration: ${{ needs.initialize.outputs.backend == 'true' }} | |
postman: ${{ needs.initialize.outputs.backend == 'true' }} | |
frontend: ${{ needs.initialize.outputs.frontend == 'true' }} | |
cli: ${{ needs.initialize.outputs.cli == 'true' }} | |
secrets: | |
DOTCMS_LICENSE: ${{ secrets.DOTCMS_LICENSE }} | |
sonar: | |
name: PR SonarQube | |
needs: [ initialize,build ] | |
if: always() && !failure() && !cancelled() | |
uses: ./.github/workflows/reusable-sonarqube.yml | |
secrets: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | |
finalize: | |
name: Finalize | |
if: always() | |
needs: [ sonar,test ] | |
uses: ./.github/workflows/reusable-finalize.yml | |
with: | |
needsData: ${{ toJson(needs) }} | |
pr-notifier: | |
name: PR Notifier | |
needs: [ finalize ] | |
if: always() | |
uses: ./.github/workflows/pr-notifier.yml | |
with: | |
pr_status: ${{ needs.finalize.outputs.aggregate_status }} | |
secrets: | |
CI_MACHINE_USER: ${{ secrets.CI_MACHINE_USER }} | |
CI_MACHINE_TOKEN: ${{ secrets.CI_MACHINE_TOKEN }} | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |