From c7f9bea1fd2133215748fcb6edf7d7a729e32616 Mon Sep 17 00:00:00 2001 From: Vijayan Balasubramanian Date: Mon, 11 Oct 2021 13:00:42 -0700 Subject: [PATCH] Rearrange workflow actions Move docker set up after unit test. Signed-off-by: Vijayan Balasubramanian --- .github/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85fd008ce6..a343dab287 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,16 +19,18 @@ jobs: distribution: 'adopt' - name: Checkout Branch uses: actions/checkout@v2 + + - name: Run Unit Test + run: ./gradlew clean unitTest + - name: Run Docker run: | docker build -t opensearch-search:test -f .ci/opensearch/Dockerfile --build-arg "SECURE_INTEGRATION=true" . docker run -p 9200:9200 -p 9600:9600 -d -e "discovery.type=single-node" opensearch-search:test sleep 60 - - name: Run Unit Test - run: ./gradlew clean unitTest - continue-on-error: true + - name: Run Integration Test run: ./gradlew clean integrationTest - continue-on-error: true + - name: Build with Gradle run: ./gradlew clean build -x test