Skip to content

Commit

Permalink
P4PU-208 added worflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe-LaManna committed Jul 16, 2024
1 parent f416181 commit 51550ba
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
- opened
- edited
- synchronize
workflow_dispatch:
inputs:
branch:
description: 'Branch to run the workflow on'
required: true
default: 'develop'

jobs:
build:
Expand All @@ -15,6 +21,7 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch || github.ref }}

- name: Setup Java
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 #v4.2.1
Expand All @@ -38,8 +45,5 @@ jobs:
-Dsonar.organization=${{ vars.SONARCLOUD_ORG }}
-Dsonar.projectKey=${{ vars.SONARCLOUD_PROJECT_KEY }}
-Dsonar.projectName="${{ vars.SONARCLOUD_PROJECT_NAME }}"
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.java.binaries=build/classes
- name: Jacoco test report
run: ./gradlew build jacocoTestReport sonar
-Dsonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/test/jacocoTestReport.xml

0 comments on commit 51550ba

Please sign in to comment.