-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.03 KB
/
test-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 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 30s
scripts/test-http-server.sh
scripts/test-grpc-server.sh