test-integration #5
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 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_auth' | |
mysql root password: 'root' | |
- name: Install grpcurl | |
run: go install github.com/fullstorydev/grpcurl/cmd/[email protected] | |
- name: Run auth service and integration test | |
run: | | |
CGO_ENABLED=0 GO111MODULE=on go build -a -o service-auth ./cmd/service-auth | |
. scripts/env-local && sudo -E ./service-auth & | |
sleep 30s | |
scripts/test-http-server.sh | |
scripts/test-grpc-server.sh |