Skip to content

Commit

Permalink
Re-enables gradle build cache
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Sep 21, 2023
1 parent 737b531 commit 6bc45d4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .github/actions/create-bwc-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ runs:
path: ${{ inputs.plugin-branch }}

- name: Build
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: assemble
build-root-directory: ${{ inputs.plugin-branch }}

Expand Down
3 changes: 1 addition & 2 deletions .github/actions/run-bwc-suite/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ runs:
plugin-branch: ${{ inputs.plugin-next-branch }}

- name: Run BWC tests
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: |
bwcTestSuite
-Dtests.security.manager=false
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ jobs:
uses: actions/checkout@v4

- name: Build and Test
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: |
${{ matrix.gradle_task }} -Dbuild.snapshot=false
Expand Down Expand Up @@ -101,12 +100,10 @@ jobs:
uses: actions/checkout@v4

- name: Build and Test
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
continue-on-error: true # Until retries are enable do not fail the workflow https://github.com/opensearch-project/security/issues/2184
with:
cache-disabled: true
arguments: |
integrationTest -Dbuild.snapshot=false
arguments: integrationTest -Dbuild.snapshot=false

backward-compatibility:
strategy:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/code-hygiene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ jobs:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 11

- uses: gradle/gradle-build-action@v2
- uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: spotlessCheck

checkstyle:
Expand All @@ -40,9 +39,8 @@ jobs:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 11

- uses: gradle/gradle-build-action@v2
- uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: checkstyleMain checkstyleTest

spotbugs:
Expand All @@ -56,9 +54,8 @@ jobs:
distribution: temurin # Temurin is a distribution of adoptium
java-version: 11

- uses: gradle/gradle-build-action@v2
- uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: spotbugsMain

check-permissions-order:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/plugin_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ jobs:
uses: actions/checkout@v4

- name: Assemble target plugin
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: assemble

# Move and rename the plugin for installation
Expand Down Expand Up @@ -59,7 +58,6 @@ jobs:
setup-script-name: setup

- name: Run sanity tests
uses: gradle/gradle-build-action@v2
uses: burrunan/gradle-cache-action@v1
with:
cache-disabled: true
arguments: integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="opensearch" -Dhttps=true -Duser=admin -Dpassword=admin

0 comments on commit 6bc45d4

Please sign in to comment.