Skip to content

Commit

Permalink
Rearrange workflow actions
Browse files Browse the repository at this point in the history
Move docker set up after unit test.

Signed-off-by: Vijayan Balasubramanian <[email protected]>
  • Loading branch information
VijayanB committed Oct 11, 2021
1 parent 03279ce commit c7f9bea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c7f9bea

Please sign in to comment.