test-integration #6
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
name: test-integration | |
on: | |
workflow_run: | |
workflows: [test-unit] | |
branches: [master] | |
types: [completed] | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Set up Go 1.16 | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16 | |
- name: Set up MySQL | |
uses: mirromutth/[email protected] | |
with: | |
mysql version: '8.0' | |
mysql database: 'local_store' | |
mysql root password: 'root' | |
- name: Start Bitname Kafka | |
uses: bbcCorp/kafka-actions@v1 | |
- name: Install grpcurl | |
run: go install github.com/fullstorydev/grpcurl/cmd/[email protected] | |
- name: Build store service | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: bootJar | |
- name: Run store service and integration test | |
run: | | |
. scripts/env-local && sudo -E java -jar build/libs/store-v1.jar & | |
sleep 60s | |
scripts/test-http-server.sh | |
scripts/test-grpc-server.sh |