Skip to content

Commit 01db48f

Browse files
cicd: Update artifact as param in test analysis #TASK-7809
1 parent 7a29b62 commit 01db48f

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.github/workflows/task.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,11 @@ on:
1010

1111
jobs:
1212

13-
build:
14-
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@TASK-7809
15-
with:
16-
needs_hadoop_preparation: true
17-
hadoop_flavour: ${{ vars.HADOOP_FLAVOUR }}
18-
maven_opts: -P${{ vars.HADOOP_FLAVOUR }} -Dopencga.war.name=opencga -Dcheckstyle.skip
19-
secrets: inherit
20-
2113
test:
2214
uses: ./.github/workflows/test-analysis.yml
23-
needs: build
2415
with:
2516
test_profile: runShortTests
17+
upload-artifact: true
2618
secrets: inherit
2719

2820
deploy-docker:

.github/workflows/test-analysis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ on:
2525
description: "Maven modules to test. Empty means all. Only top-level modules. Example: 'opencga-storage'"
2626
required: false
2727
default: ""
28+
upload-artifact:
29+
type: boolean
30+
description: "Whether to upload the build artifact or not"
31+
required: false
32+
default: false
2833
secrets:
2934
SONAR_TOKEN:
3035
required: true
@@ -37,7 +42,7 @@ jobs:
3742
needs_hadoop_preparation: true
3843
hadoop_flavour: ${{ inputs.hadoop }}
3944
maven_opts: -P${{ inputs.hadoop }} -Dopencga.war.name=opencga -Dcheckstyle.skip
40-
upload-artifact: false
45+
upload-artifact: ${{ inputs.upload-artifact }}
4146
secrets: inherit
4247

4348
analysis:

0 commit comments

Comments
 (0)