diff --git a/.github/workflows/config-scenario-test.yaml b/.github/workflows/config-scenario-test.yaml new file mode 100644 index 0000000000..ab76ee3e64 --- /dev/null +++ b/.github/workflows/config-scenario-test.yaml @@ -0,0 +1,76 @@ +name: Configuration Scenario Tests + +permissions: + id-token: write # Required for requesting the JWT + contents: read # Required for listing the commits + pull-requests: write # Required for creating PR comments + +on: + pull_request: + branches: + - main + types: [opened, synchronize, reopened] + +jobs: + config-test: + name: Configuration Scenario Test + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v5 + + - name: Post configuration test comment + uses: marocchino/sticky-pull-request-comment@v2 + continue-on-error: true + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + header: configtest-${{ github.run_id }} + number: ${{ github.event.pull_request.number }} + hide: true + hide_classify: "OUTDATED" + message: | + ## Configuration Scenario Test Overview + + :mag: **[Go to test action run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})** + + | Name | Value | + |------|-------| + |**Repository** | ${{ github.repository }} | + |**PR Number** | #${{ github.event.pull_request.number }} | + |**Commit SHA** | ${{ github.sha }} | + |**Commit ref** | ${{ github.ref }} | + |**Triggered by** | @${{ github.actor }} | + |**Run attempt** | ${{ github.run_attempt }} | + +
+ Click here to see test run details + + * **Workflow**: Configuration Scenario Tests + * **Event**: ${{ github.event_name }} + * **Base branch**: ${{ github.base_ref }} + * **Head branch**: ${{ github.head_ref }} + * **Run ID**: ${{ github.run_id }} + * **Run number**: ${{ github.run_number }} + * **Started at**: ${{ github.event.pull_request.updated_at }} + +
+ + ## Test Status + + :white_check_mark: Configuration scenario test comment created successfully! + + - name: Update comment with completion status + uses: marocchino/sticky-pull-request-comment@v2 + continue-on-error: true + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + header: configtest-${{ github.run_id }} + number: ${{ github.event.pull_request.number }} + append: true + message: | + + --- + + :checkered_flag: **Test completed at**: ${{ github.event.repository.updated_at }} + + **Final Status**: ${{ job.status }} diff --git a/trigger.txt b/trigger.txt new file mode 100644 index 0000000000..3b6d0c5c10 --- /dev/null +++ b/trigger.txt @@ -0,0 +1,16 @@ +first trigger +second +additional text +additional text +additional text +additional text +additional text +additional text +additional text +additional text +additional text +additional text +additional text +additional text +additional text +additional text