Added setting to configure gradle task for java pr check template.
This commit is contained in:
parent
0d72624644
commit
fe115184a0
|
@ -16,6 +16,11 @@ on:
|
||||||
description: 'Базовый путь для секретов проекта в vault'
|
description: 'Базовый путь для секретов проекта в vault'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
gradle_check_command:
|
||||||
|
description: 'Команда для исполнения в gradle'
|
||||||
|
default: 'test'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
sonar_enabled:
|
sonar_enabled:
|
||||||
default: false
|
default: false
|
||||||
required: false
|
required: false
|
||||||
|
@ -42,7 +47,7 @@ jobs:
|
||||||
cache-read-only: ${{ gitea.ref != 'refs/heads/master' && gitea.ref != 'refs/heads/develop' }}
|
cache-read-only: ${{ gitea.ref != 'refs/heads/master' && gitea.ref != 'refs/heads/develop' }}
|
||||||
|
|
||||||
- name: run gradle check
|
- name: run gradle check
|
||||||
run: ./gradlew test -i -s
|
run: ./gradlew ${{ inputs.gradle_check_command }} -i -s
|
||||||
|
|
||||||
- id: import-secrets
|
- id: import-secrets
|
||||||
if: ${{ inputs.sonar_enabled }}
|
if: ${{ inputs.sonar_enabled }}
|
||||||
|
|
Loading…
Reference in New Issue