expose a config to adjust the StdBy pool size (if required) #592
Workflow file for this run
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: Go Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.18.2 | |
- name: Install GO Modules | |
run: | | |
go mod tidy | |
go mod download github.com/godror/godror | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v github.com/paypal/hera/worker/mysqlworker github.com/paypal/hera/utility/encoding/netstring github.com/paypal/hera/lib github.com/paypal/hera/common github.com/paypal/hera/cal | |
container-job: | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql | |
env: | |
MYSQL_ROOT_PASSWORD: 1-testDb | |
MYSQL_DATABASE: heratestdb | |
ports: | |
- 3306:3306 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.18.2 | |
- name: Install GO Modules | |
run: | | |
go mod tidy | |
go mod download github.com/godror/godror | |
- name: Build worker | |
run: go install github.com/paypal/hera/worker/mysqlworker | |
- name: System Test | |
run: | | |
export GOPATH="/home/runner/go" | |
echo $GOPATH | |
tests/unittest/testall.sh |