mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Switch to composite actions for pr_details and sonarqube (#22409)
* Switch to composite actions for pr_details and sonarqube * Bring back a reusable workflow for element-web stack sonarqube runs
This commit is contained in:
parent
2a9587d4ff
commit
3c170bbe96
22
.github/workflows/sonarqube.yml
vendored
22
.github/workflows/sonarqube.yml
vendored
@ -8,30 +8,8 @@ concurrency:
|
|||||||
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}
|
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
prdetails:
|
|
||||||
name: ℹ️ PR Details
|
|
||||||
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request'
|
|
||||||
uses: matrix-org/matrix-js-sdk/.github/workflows/pr_details.yml@develop
|
|
||||||
with:
|
|
||||||
owner: ${{ github.event.workflow_run.head_repository.owner.login }}
|
|
||||||
branch: ${{ github.event.workflow_run.head_branch }}
|
|
||||||
|
|
||||||
sonarqube:
|
sonarqube:
|
||||||
name: 🩻 SonarQube
|
name: 🩻 SonarQube
|
||||||
needs: prdetails
|
|
||||||
# Only wait for prdetails if it isn't skipped
|
|
||||||
if: |
|
|
||||||
always() &&
|
|
||||||
(needs.prdetails.result == 'success' || needs.prdetails.result == 'skipped') &&
|
|
||||||
github.event.workflow_run.conclusion == 'success'
|
|
||||||
uses: matrix-org/matrix-js-sdk/.github/workflows/sonarcloud.yml@develop
|
uses: matrix-org/matrix-js-sdk/.github/workflows/sonarcloud.yml@develop
|
||||||
with:
|
|
||||||
repo: ${{ github.event.workflow_run.head_repository.full_name }}
|
|
||||||
pr_id: ${{ needs.prdetails.outputs.pr_id }}
|
|
||||||
head_branch: ${{ needs.prdetails.outputs.head_branch || github.event.workflow_run.head_branch }}
|
|
||||||
base_branch: ${{ needs.prdetails.outputs.base_branch }}
|
|
||||||
revision: ${{ github.event.workflow_run.head_sha }}
|
|
||||||
coverage_workflow_name: tests.yml
|
|
||||||
coverage_run_id: ${{ github.event.workflow_run.id }}
|
|
||||||
secrets:
|
secrets:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user