-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the CI workflow to run the integ tests on all platforms (#649)
* Update the CI workflow to run the integ tests on all platforms Signed-off-by: Ankit Kala <[email protected]> * Skip FS snapshot repository registration on windows Signed-off-by: Ankit Kala <[email protected]> Signed-off-by: Ankit Kala <[email protected]>
- Loading branch information
Showing
5 changed files
with
74 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CCR Test Workflow | ||
# This workflow is triggered on pull requests to main branch | ||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
push: | ||
branches: | ||
- '*' | ||
|
||
# We build for all combinations but run tests only on all platforms on latest java) | ||
jobs: | ||
build: | ||
continue-on-error: true | ||
strategy: | ||
matrix: | ||
java: | ||
- 14 | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macos-latest | ||
# Job name | ||
name: Run integration tests on ${{ matrix.os }} with Java ${{ matrix.java }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
# This step uses the setup-java Github action: https://github.com/actions/setup-java | ||
- name: Set Up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
# This step uses the checkout Github action: https://github.com/actions/checkout | ||
- name: Checkout Branch | ||
uses: actions/checkout@v2 | ||
- name: Build and run Replication tests | ||
run: | | ||
./gradlew clean release -D"build.snapshot=true" | ||
- name: Upload failed logs | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: logs | ||
path: | | ||
build/testclusters/integTest-*/logs/* | ||
build/testclusters/leaderCluster-*/logs/* | ||
build/testclusters/followCluster-*/logs/* | ||
- name: Create Artifact Path | ||
run: | | ||
mkdir -p cross-cluster-replication-artifacts | ||
cp ./build/distributions/*.zip cross-cluster-replication-artifacts | ||
- name: Uploads coverage | ||
with: | ||
fetch-depth: 2 | ||
uses: codecov/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test and Build Workflow | ||
name: Build Replication plugin | ||
# This workflow is triggered on pull requests to main branch | ||
on: | ||
pull_request: | ||
|
@@ -8,17 +8,22 @@ on: | |
branches: | ||
- '*' | ||
|
||
# We build for other platforms except linux which is already covered in build-and-test. | ||
# Also, We're not running tests here as those are already covered with linux build. | ||
jobs: | ||
build: | ||
continue-on-error: true | ||
strategy: | ||
matrix: | ||
java: | ||
- 14 | ||
- 8 | ||
- 11 | ||
- 14 | ||
os: | ||
- ubuntu-latest | ||
# Job name | ||
name: Build Replication plugin | ||
runs-on: ubuntu-latest | ||
name: Java ${{ matrix.java }} On ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
# This step uses the setup-java Github action: https://github.com/actions/setup-java | ||
- name: Set Up JDK ${{ matrix.java }} | ||
|
@@ -30,21 +35,5 @@ jobs: | |
uses: actions/checkout@v2 | ||
- name: Build and run Replication tests | ||
run: | | ||
./gradlew clean release -Dbuild.snapshot=true -Dopensearch.version=1.3.7-SNAPSHOT | ||
- name: Upload failed logs | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: logs | ||
path: | | ||
build/testclusters/integTest-*/logs/* | ||
build/testclusters/leaderCluster-*/logs/* | ||
build/testclusters/followCluster-*/logs/* | ||
- name: Create Artifact Path | ||
run: | | ||
mkdir -p cross-cluster-replication-artifacts | ||
cp ./build/distributions/*.zip cross-cluster-replication-artifacts | ||
- name: Uploads coverage | ||
with: | ||
fetch-depth: 2 | ||
uses: codecov/[email protected] | ||
./gradlew clean release -D"build.snapshot=true" -x test -x IntegTest | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters