mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge remote-tracking branch 'origin/4.17'
This commit is contained in:
commit
711d4b9f0f
33
.github/workflows/coverage-check.yml
vendored
33
.github/workflows/coverage-check.yml
vendored
@ -17,7 +17,7 @@
|
||||
|
||||
name: PR Quality Check
|
||||
|
||||
on: [pull_request]
|
||||
on: [pull_request_target]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -29,8 +29,38 @@ jobs:
|
||||
ref: "refs/pull/${{ github.event.number }}/merge"
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Changed UI Files
|
||||
id: ui-changes
|
||||
uses: tj-actions/changed-files@a59f800cbb60ed483623848e31be67659a2940f8
|
||||
with:
|
||||
sha: "${{ github.pull_request.sha }}"
|
||||
base_sha: "${{ github.sha }}"
|
||||
files: |
|
||||
ui/*
|
||||
|
||||
- name: Kick UI Build
|
||||
uses: peter-evans/create-or-update-comment@c9fcb64660bc90ec1cc535646af190c992007c32
|
||||
if: steps.ui-changes.outputs.any_changed == 'true'
|
||||
with:
|
||||
token: ${{ secrets.ACS_ROBOT_TOKEN }}
|
||||
issue-number: ${{ github.event.pull_request.number }}
|
||||
body: |
|
||||
Found UI changes, kicking a new UI QA build
|
||||
@blueorangutan ui
|
||||
|
||||
- name: Changed Java Files
|
||||
id: java-changes
|
||||
uses: tj-actions/changed-files@a59f800cbb60ed483623848e31be67659a2940f8
|
||||
with:
|
||||
sha: "${{ github.pull_request.sha }}"
|
||||
base_sha: "${{ github.sha }}"
|
||||
files: |
|
||||
**/*.java
|
||||
**/*.xml
|
||||
|
||||
- name: Set up JDK11
|
||||
uses: actions/setup-java@v3
|
||||
if: steps.java-changes.outputs.any_changed == 'true'
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '11'
|
||||
@ -53,6 +83,7 @@ jobs:
|
||||
|
||||
- name: Run Build and Tests with Coverage
|
||||
id: coverage
|
||||
if: steps.java-changes.outputs.any_changed == 'true'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user