[RHCLOUD-44980] Remove Camel dependency from PagerDuty connector #18641
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
| name: Build & Test | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 2 | |
| - name: Prepare cache key | |
| id: cache-key | |
| shell: bash | |
| run: echo "::set-output name=date::$(/bin/date -u "+%Y-%m")" | |
| - name: Cache Maven dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2/repository | |
| # The cache key is changed every month to prevent unlimited growth. | |
| key: maven-cache-${{ steps.cache-key.outputs.date }} | |
| - name: Cache Yarn dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/yarn | |
| # The cache key is changed every month to prevent unlimited growth. | |
| key: yarn-cache-${{ steps.cache-key.outputs.date }} | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: adopt | |
| java-version: 21 | |
| - name: Verify if admin-console changed | |
| id: admin-console-changed | |
| uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6 | |
| with: | |
| files: admin-console/** | |
| - name: Build admin-console | |
| if: steps.admin-console-changed.outputs.any_changed == 'true' | |
| run: ./mvnw clean verify -Padmin-console -pl :checkstyle,:notifications-admin-console --no-transfer-progress | |
| - name: Create PR for admin-console updates | |
| if: steps.admin-console-changed.outputs.any_changed == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: bash .github/scripts/push-admin-console.sh | |
| - name: Build with Maven | |
| run: ./mvnw clean verify --no-transfer-progress | |
| - name: Pushes coverage | |
| run: bash <(curl -s https://codecov.io/bash) | |
| - uses: actions/upload-artifact@v7 | |
| name: Upload openapi.json | |
| with: | |
| name: openapi | |
| path: | | |
| backend/target/api/notifications/v1/openapi.json | |
| backend/target/api/notifications/v2/openapi.json | |
| backend/target/api/integrations/v1/openapi.json | |
| backend/target/api/integrations/v2/openapi.json | |
| backend/target/api/private/v1/openapi.json | |
| backend/target/api/private/v2/openapi.json | |
| backend/target/internal/openapi.json |