Skip to content

Commit

Permalink
workflow networking
Browse files Browse the repository at this point in the history
  • Loading branch information
gavincabbage committed Sep 19, 2019
1 parent 15cd0cb commit cc326b6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,15 @@ jobs:
SERVICES: s3
postgres:
image: healthcheck/postgres
ports:
- 5432:5432
env:
POSTGRES_DB: testdb
POSTGRES_PASSWORD: password
mariadb:
image: healthcheck/mariadb
ports:
- 3306:3306
env:
MYSQL_DATABASE: testdb
MYSQL_ROOT_PASSWORD: password
Expand All @@ -75,8 +79,8 @@ jobs:
AWS_SECRET_KEY: bogus
AWS_REGION: us-east-1
AWS_ENDPOINT: http://s3:4572
POSTGRES_URL: postgres://postgres:password@postgres/testdb?sslmode=disable
MARIADB_URL: root:password@tcp(mariadb:3306)/testdb?charset=utf8&parseTime=True&loc=Local
POSTGRES_URL: postgres://postgres:password@localhost:${{ job.services.postgres.ports['5432'] }}/testdb?sslmode=disable
MARIADB_URL: root:password@tcp(localhost:${{ job.services.mariadb.ports['3306'] }})/testdb?charset=utf8&parseTime=True&loc=Local

benchmark:
name: Benchmark
Expand All @@ -88,6 +92,8 @@ jobs:
SERVICES: s3
postgres:
image: healthcheck/postgres
ports:
- 5432:5432
env:
POSTGRES_DB: testdb
POSTGRES_PASSWORD: password
Expand All @@ -105,4 +111,10 @@ jobs:
run: go mod download
- name: Benchmark
run: go test -run=Benchmark -benchmem -bench=.
env:
AWS_ACCESS_KEY_ID: bogus
AWS_SECRET_KEY: bogus
AWS_REGION: us-east-1
AWS_ENDPOINT: http://s3:4572
POSTGRES_URL: postgres://postgres:password@localhost:${{ job.services.postgres.ports['5432'] }}/testdb?sslmode=disable

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
needs: [ "go test" ]
needs: [ "build" ]
steps:
- name: Check out code
uses: actions/checkout@master
Expand Down

0 comments on commit cc326b6

Please sign in to comment.