Skip to content

Commit

Permalink
CI: run all gradle commands in one go
Browse files Browse the repository at this point in the history
right now `./gradlew build` could fail but the script would still go on
(because neither `set -e` is set nor `&&` is used to run both commands
together).

the easiest solution is to just run both gradle target in one go as one
anyway depends on the other - there's no need to start gradle twice.
this will also make the runs ever so slightly faster.

fixes opensearch-project#60

Signed-off-by: Ralph Ursprung <[email protected]>
  • Loading branch information
rursprung committed Jun 11, 2024
1 parent 2ddf039 commit 5c486a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,4 @@ jobs:

- name: Build and Run Tests
run: |
./gradlew build
# Generated by 'opensearch.pluginzip' custom gradle plugin
./gradlew publishPluginZipPublicationToZipStagingRepository
./gradlew build publishPluginZipPublicationToZipStagingRepository

0 comments on commit 5c486a2

Please sign in to comment.