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 <Ralph.Ursprung@avaloq.com>
  • Loading branch information
rursprung committed Jun 11, 2024
1 parent 99cfddc commit ce4a164
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,9 +32,7 @@ jobs:

- name: Build and Run Tests
run: |
./gradlew build
# Generated by 'opensearch.pluginzip' custom gradle plugin
./gradlew publishPluginZipPublicationToZipStagingRepository
./gradlew build publishPluginZipPublicationToZipStagingRepository
- name: Update version to the next development iteration
if: matrix.os != 'windows-latest'
run: |
Expand Down

0 comments on commit ce4a164

Please sign in to comment.