This is an automated email from the ASF dual-hosted git repository.
francischuang pushed a commit to branch github-actions
in repository https://gitbox.apache.org/repos/asf/calcite-avatica-go.git
The following commit(s) were added to refs/heads/github-actions by this push:
new 3f26042 Try github actions
3f26042 is described below
commit 3f26042a8cdb28bd544f1bb94b4176e5fa798468
Author: Francis Chuang <[email protected]>
AuthorDate: Tue Sep 17 22:03:17 2019 +1000
Try github actions
---
.github/workflows/tests.yaml | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 57d46c4..9e7f153 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -20,22 +20,25 @@ jobs:
runs-on: ubuntu-latest
- container:
- image: golang:${{ matrix.go_version}}
- env:
- PHOENIX_HOST: http://database:8765
- HSQLDB_HOST: http://database:8765
- DATABASE_IMAGE: ${{ matrix.database_image }}
-
services:
database:
image: ${{ matrix.database_image }}
+ ports: 8765
steps:
+ - name: Set up go
+ uses: actions/setup-go@v1
+ with:
+ go-version: ${{ matrix.go_version}}
+
- name: Check out Avatica-Go repository
uses: actions/checkout@v1
- name: Run tests
+ env:
+ PHOENIX_HOST: http://localhost:${{
jobs.services.database.ports[8765] }}
+ HSQLDB_HOST: http://localhost:${{ jobs.services.database.ports[8765]
}}
+ DATABASE_IMAGE: ${{ matrix.database_image }}
run: |
case "$DATABASE_IMAGE" in
*phoenix*)