From 8fb58591a6e34094eae26e32949f7d0ab7177c82 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga <jason@thesparktree.com> Date: Thu, 28 Oct 2021 07:41:41 -0700 Subject: [PATCH] fixes for Scrutiny end-to-end testing. --- .github/workflows/build.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 362aacc..14ad185 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -7,6 +7,20 @@ jobs: name: Build runs-on: ubuntu-latest container: karalabe/xgo-1.13.x + + # Service containers to run with `build` (Required for end-to-end testing) + services: + influxdb: + image: influxdb:2.0 + env: + DOCKER_INFLUXDB_INIT_MODE: setup + DOCKER_INFLUXDB_INIT_USERNAME: admin + DOCKER_INFLUXDB_INIT_PASSWORD: password12345 + DOCKER_INFLUXDB_INIT_ORG: scrutiny + DOCKER_INFLUXDB_INIT_BUCKET: metrics + DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: my-super-secret-auth-token + ports: + - 8086:8086 env: PROJECT_PATH: /go/src/github.com/analogj/scrutiny CGO_ENABLED: 1