Skip to content

Commit

Permalink
Merge branch 'main' into issue-30737-ftm-new-uve-toolbar-implement-wo…
Browse files Browse the repository at this point in the history
…rkflows-action-button
  • Loading branch information
rjvelazco authored Dec 13, 2024
2 parents 57deed3 + b8de85e commit d616428
Show file tree
Hide file tree
Showing 58 changed files with 323 additions and 198 deletions.
2 changes: 1 addition & 1 deletion .github/actions/core-cicd/api-limits-check/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:

jobs:
check-rate-limits:
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- name: Check API Rate Limit
uses: your-repo/check-rate-limit-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/core-cicd/cleanup-runner/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Here's an example of how to incorporate this action into your workflow:
```yaml
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- uses: actions/checkout@v2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ on:

jobs:
deploy-javadoc:
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- name: Deploy Artifact Javadoc
uses: ./.github/actions/deploy-artifact-javadoc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ on:

jobs:
publish-sdk:
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- name: Publish to NPM
uses: ./.github/actions/core-cicd/deployment/deploy-javascript-sdk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:

jobs:
deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/core-cicd/maven-job/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Here's an example of how to incorporate this action into your workflow:
```yaml
jobs:
build-and-test:
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- uses: actions/checkout@v2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:

jobs:
notify:
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- name: Send Slack Notification
uses: ./
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/core-cicd/prepare-runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Here's an example of how to incorporate this action into your workflow:
```yaml
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/core-cicd/setup-java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Here's an example of how to incorporate this action into your workflow:
```yaml
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cicd_comp_build-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
# It provides a local Maven repo for subsequent steps.
build-jdk11:
name: "Initial Artifact Build"
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
if: inputs.core-build == true
permissions:
contents: read
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cicd_comp_cli-native-build-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ jobs:
# Job to determine the OS matrix for the build
os-runners:
name: 'Get OS matrix'
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
outputs:
runners: ${{ steps.set-os.outputs.runners }}
steps:
- name: 'Set OS'
id: set-os
run: |
if [[ "${{ inputs.buildNativeImage }}" == "true" ]]; then
RUNNERS='[{ "os": "ubuntu-22.04", "label": "Linux", "platform": "linux-x86_64" }, { "os": "macos-13", "label": "macOS-Intel", "platform": "osx-x86_64" }, { "os": "macos-14", "label": "macOS-Silicon", "platform": "osx-aarch_64" }]'
RUNNERS='[{ "os": "ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}", "label": "Linux", "platform": "linux-x86_64" }, { "os": "macos-13", "label": "macOS-Intel", "platform": "osx-x86_64" }, { "os": "macos-14", "label": "macOS-Silicon", "platform": "osx-aarch_64" }]'
else
RUNNERS='[{ "os": "ubuntu-22.04", "label": "Linux", "platform": "linux-x86_64" }]'
RUNNERS='[{ "os": "ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}", "label": "Linux", "platform": "linux-x86_64" }]'
fi
echo "runners=$RUNNERS" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cicd_comp_deployment-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ on:

jobs:
deployment:
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
# Use of Docker environments to enable per-deployment environment secrets
# This allows for different secrets to be used based on the deployment environment
environment: ${{ inputs.environment }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cicd_comp_finalize-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:
jobs:
prepare-report-data:
name: Prepare Report Data
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
if: always()
outputs:
aggregate_status: ${{ steps.prepare-workflow-data.outputs.aggregate_status }}
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
name: Final Status
needs: prepare-report-data
if: always()
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
# Check the final status and fail the workflow if not successful
- name: Check Final Status
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cicd_comp_initialize-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
# This job is used as a required check to indicate that the workflow has started and is running
initialize:
name: Initialize
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
if: always()
steps:
- run: echo 'GitHub context'
Expand All @@ -75,7 +75,7 @@ jobs:
# This job checks for artifacts from previous builds and determines if they can be reused
check-previous-build:
name: Check Previous Build
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
outputs:
artifact-run-id: ${{ steps.check.outputs.run_id }}
found_artifacts: ${{ steps.check.outputs.found_artifacts }}
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
name: Check Changed Files
needs: [ check-previous-build ]
if: always() && !failure() && !cancelled()
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
outputs:
build: ${{ steps.filter-rewrite.outputs.build }}
backend: ${{ steps.filter-rewrite.outputs.backend }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cicd_comp_pr-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
jobs:
message-resolver:
name: Resolve Message
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
outputs:
message: ${{ steps.message-resolver.outputs.message }}
steps:
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:

pr-notifier:
needs: [message-resolver, slack-channel-resolver]
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cicd_comp_semgrep-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
jobs:
buildmavenDepTree:
name: Semgrep Dep Tree
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
# Only run on main branch or pull requests in the main repository
if: |
(github.ref == 'refs/heads/main' || github.event_name == 'pull_request') && github.repository == 'dotCMS/core'
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
semgrep:
needs: buildmavenDepTree
name: Scan
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
NO_FAIL: ${{ vars.SEMGREP_NO_FAIL || 'false' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cicd_comp_sonarqube-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:
jobs:
sonarqube:
name: SonarQube Scan
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
# Only run on main branch or pull requests in the main repository
if: |
(github.ref == 'refs/heads/main' || github.event_name == 'pull_request') && github.repository == 'dotCMS/core'
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/cicd_comp_test-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
# JVM Unit Tests
linux-jvm-tests:
name: JVM Unit Tests - JDK ${{matrix.java.name}}
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
if: inputs.jvm_unit_test || inputs.run-all-tests
timeout-minutes: 240
env:
Expand All @@ -73,7 +73,7 @@ jobs:
- uses: ./.github/actions/core-cicd/maven-job
with:
stage-name: "JVM Tests"
maven-args: "-Pcoverage -Dprod test -pl :dotcms-core"
maven-args: " -Dprod test -pl :dotcms-core"
cleanup-runner: true
generates-test-results: true
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -82,7 +82,7 @@ jobs:
# CLI Tests
linux-cli-tests:
name: CLI Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
if: inputs.cli || inputs.run-all-tests
timeout-minutes: 240
env:
Expand All @@ -106,7 +106,7 @@ jobs:
# Frontend Tests
linux-frontend-tests:
name: Frontend Unit Tests
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
if: inputs.frontend || inputs.run-all-tests
timeout-minutes: 240
env:
Expand All @@ -128,7 +128,7 @@ jobs:
# Integration Tests
linux-integration-tests:
name: JVM IT Tests ${{matrix.suites.name}}
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
if: inputs.integration || inputs.run-all-tests
timeout-minutes: 240
env:
Expand All @@ -151,7 +151,7 @@ jobs:
- uses: ./.github/actions/core-cicd/maven-job
with:
stage-name: "IT Tests ${{ matrix.suites.name }}"
maven-args: "-Dit.test.forkcount=1 -Pcoverage verify -pl :dotcms-integration -Dcoreit.test.skip=false ${{ matrix.suites.maven_args}}"
maven-args: "-Dit.test.forkcount=1 verify -pl :dotcms-integration -Dcoreit.test.skip=false ${{ matrix.suites.maven_args}}"
generates-test-results: true
cleanup-runner: true
dotcms-license: ${{ secrets.DOTCMS_LICENSE }}
Expand All @@ -162,7 +162,7 @@ jobs:
# Postman Tests
linux-postman-tests:
name: Run Postman Tests - ${{matrix.collection_group}}
runs-on: ubuntu-24.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
if: inputs.postman || inputs.run-all-tests
strategy:
fail-fast: false
Expand All @@ -176,7 +176,7 @@ jobs:
- uses: ./.github/actions/core-cicd/maven-job
with:
stage-name: "Postman ${{ matrix.collection_group }}"
maven-args: "-Pcoverage verify -pl :dotcms-postman -Dpostman.test.skip=false -Dpostman.collections=${{ matrix.collection_group }}"
maven-args: " verify -pl :dotcms-postman -Dpostman.test.skip=false -Dpostman.collections=${{ matrix.collection_group }}"
generates-test-results: true
dotcms-license: ${{ secrets.DOTCMS_LICENSE }}
requires-node: true
Expand All @@ -187,7 +187,7 @@ jobs:
# Karate Tests
karate-tests:
name: Karate Tests - ${{ matrix.suites.name }}
runs-on: ubuntu-24.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
if: inputs.karate || inputs.run-all-tests
strategy:
fail-fast: false
Expand Down Expand Up @@ -216,10 +216,10 @@ jobs:
with:
name: karate-reports
path: dotCMS/target/karate-reports
# E2E Tests
# E2E Testsgit
linux-e2e-tests:
name: E2E Tests ${{matrix.suites.name}}
runs-on: ubuntu-24.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
if: inputs.e2e || inputs.run-all-tests
timeout-minutes: 240
env:
Expand All @@ -238,7 +238,7 @@ jobs:
- uses: ./.github/actions/core-cicd/maven-job
with:
stage-name: "E2E ${{ matrix.suites.name }}"
maven-args: "verify -Pcoverage -De2e.test.skip=false ${{ matrix.suites.maven_args}}"
maven-args: "verify -De2e.test.skip=false ${{ matrix.suites.maven_args}}"
generates-test-results: true
dotcms-license: ${{ secrets.DOTCMS_LICENSE }}
requires-node: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cicd_manual_build-docker-context.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
jobs:
build_image:
name: Build Docker Base Image
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- name: Checkout core
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cicd_manual_build-java-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
jobs:
build_image:
name: Build Docker Base Image
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- name: Checkout core
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cicd_manual_publish-starter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:

deploy-artifacts:
needs: [ get-starter ]
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
environment: starter
outputs:
filename: ${{ steps.deploy-artifacts.outputs.filename }}
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
send-notification:
needs: [ deploy-artifacts ]
runs-on: ubuntu-20.04
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
if: always() && github.event.inputs.dry-run == 'false'
steps:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cicd_post-workflow-reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ permissions:

jobs:
report:
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
# Log GitHub context for debugging
- name: Log GitHub context
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cicd_release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
precheck:
if: ${{ ( github.event_name == 'release' && !contains(github.event.release.tag_name, 'LTS')) || github.event_name == 'workflow_dispatch' }}
name: 'Pre-check'
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
outputs:
RELEASE_VERSION: ${{ steps.version.outputs.RELEASE_VERSION }}
HEAD: ${{ steps.version.outputs.HEAD }}
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
# Perform the release
release:
needs: [ precheck, build-cli ]
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- name: 'Check out repository'
uses: actions/checkout@v4
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
name: "Publish NPM Package"
if: success() # Run only if explicitly indicated and successful
needs: [ precheck, build, build-cli, release ]
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- name: 'Checkout code'
uses: actions/checkout@v4
Expand Down Expand Up @@ -332,7 +332,7 @@ jobs:
name: "Clean Up"
if: ${{ needs.precheck.outputs.AUXILIARY_BRANCH != '' }}
needs: [ precheck, build, build-cli, release, publish-npm-package ]
runs-on: ubuntu-latest
runs-on: ubuntu-${{ vars.UBUNTU_RUNNER_VERSION || '24.04' }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand Down
Loading

0 comments on commit d616428

Please sign in to comment.